Commit Graph

39 Commits

Author SHA1 Message Date
rpereira2 9d67a3d17c Change docs to recommend perform_enqueued_jobs
- Instead of Sidekiq::Testing.inline!, recommend the use of
perform_enqueued_jobs. This is due to the changes in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20768
2019-06-19 16:50:00 +05:30
Yoginth 88bb6b1d74 Fix Typos 2019-06-12 15:51:29 +00:00
Rémy Coutable 0c9b9a70f4
Document the on-demand run of MySQL tests
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-05-22 21:47:32 +02:00
Luke Duncalfe db7dabea67 Link to testing guide for feature flag spec info
In order for there to be a single source of truth.
2019-05-17 18:36:52 +00:00
Heinrich Lee Yu 84ec11131d Add doc when rspec-set won't work 2019-04-05 20:41:58 +08:00
Zeff Morgan 127828c64a Update testing guide to reference test design 2019-03-26 15:40:10 -04:00
Marcel Amirault 9c8dc7ddf6 Docs: Fix broken anchors in development docs 2019-03-05 13:06:32 +00:00
Douwe Maan 7d1216016c Merge branch 'patch-31' into 'master'
Update best_practices.md let section to also reference let! variables.

See merge request gitlab-org/gitlab-ce!22496
2019-02-28 13:24:23 +00:00
Rémy Coutable b85b6590e5
Fix and document an RSpec::Parameterized::TableSyntax edge-case
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-02-20 19:51:26 +01:00
Evan Read c2c2d04b3a Fix most instances of bare URLs in markdown 2019-01-24 06:52:33 +00:00
Sam Bigelow 8b7aa1e443 Update best_practices.md 2018-12-12 20:54:44 +00:00
Sam Bigelow 78cad022cb Document how to run rspec tests 2018-12-12 20:49:17 +00:00
Takuya Noguchi e238882d0c Eliminate duplicated words
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2018-11-22 15:44:32 +09:00
Rémy Coutable 173b1436b1 Merge branch '51366-custom-repos-trait-docs' into 'master'
Document the :repository and :custom_repo traits

Closes #51366

See merge request gitlab-org/gitlab-ce!22480
2018-10-22 06:47:58 +00:00
Nick Thomas a5ee4e0d7b
Document how GitLab keeps its tests pristine 2018-10-19 18:08:41 +01:00
Artur Martsinkovskyi cb275a33e3 Update best_practices.md let section to also reference let! variables. 2018-10-19 15:38:30 +00:00
Nick Thomas 2953798e7e
Document the :repository and :custom_repo traits 2018-10-19 03:09:37 +01:00
Toon Claes 13afac6533 First version of pry_debugging.md 2018-07-20 11:56:17 +02:00
Winnie Hellmann 0fbd948b8d Add link to hack for styling Capybara HTML dumps 2018-05-31 14:03:46 +00:00
Rémy Coutable 920becb784 Merge branch 'backstage/gb/improve-fast-specs-helper' into 'master'
Improve fast specs helper to autoload the library

See merge request gitlab-org/gitlab-ce!18903
2018-05-15 13:27:04 +00:00
Grzegorz Bizon 7186f0de65 Improve testing best practices guidelines
It mentions that explicitly defining dependencies in sources is
preferred over defining such dependencies only in spec files.
2018-05-15 14:43:39 +02:00
Grzegorz Bizon d134c0fb70 Update docs describing `fast_spec_helper` best practices 2018-05-15 10:38:00 +02:00
blackst0ne c3882c2611 Clean up docs 2018-05-14 18:53:57 +11:00
Stan Hu 204af2e101 Support resetting of Prometheus metrics between test runs
Adding the :prometheus tag to an rspec test will clear out
memory-mapped files and reset the registry.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39968
2018-05-09 14:33:42 -07:00
Michael Kozono 407a800456 Add Capybara debugging methods to docs 2018-04-23 19:52:45 +00:00
Rémy Coutable 5b44097cf7
Address latest feedback
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 13:02:07 +02:00
Rémy Coutable fe919f95b1
Document the new 'spec/fast_spec_helper.rb' file
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 12:20:30 +02:00
Clement Ho b593565538 Add note about live_debug only working on javascript enabled specs 2018-01-22 17:50:39 +00:00
Anwar El Wakil 408e3cc1c4 Update best_practices.md
Remove duplicate list item in "General Guidelines" Section.
2018-01-19 13:15:35 +00:00
Rémy Coutable 4af9d592c5 Replace factory_girl_rails with factory_bot_rails
I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands:

```
grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|"
grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|"
```

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-14 15:01:55 +01:00
Douwe Maan 4d6830ec50 Merge branch 'patch-28' into 'master'
Add debugging section to testing_guide/best_practices.md.

See merge request gitlab-org/gitlab-ce!14858
2017-11-02 11:58:54 +00:00
Rémy Coutable 0364e07447
Address Douwe's feedback
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-11-02 12:02:51 +01:00
Rémy Coutable 1c17ddba66
Simplify the live debugger resume mechanism: press any key
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-26 18:03:33 +02:00
Eric Eastwood 43377979c6 Check for element before evaluate_script
Tip from
https://robots.thoughtbot.com/write-reliable-asynchronous-integration-tests-with-capybara#directly-interacting-with-javascript
2017-10-19 14:01:15 -05:00
Rémy Coutable a3368a988d
Improve the LiveDebugger exit handler and documentation
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-17 17:42:21 +02:00
Rémy Coutable 9bccea6e34
Add LiveDebugger#live_debug to debug Capybara in feature tests.
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-16 10:50:12 +02:00
Clement Ho 88bd5fa274 Update best_practices.md 2017-10-12 21:38:52 +00:00
Fatih Acet 77d636cc16 Add debugging section to testing_guide/best_practices.md. 2017-10-12 21:29:32 +00:00
Rémy Coutable 676840ff9c Refactor the Development documentation, and divide the Testing documentation into multiple pages 2017-10-11 05:59:34 +00:00