Commit Graph

43 Commits

Author SHA1 Message Date
0fbd948b8d Add link to hack for styling Capybara HTML dumps 2018-05-31 14:03:46 +00:00
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
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
d134c0fb70 Update docs describing fast_spec_helper best practices 2018-05-15 10:38:00 +02:00
c3882c2611 Clean up docs 2018-05-14 18:53:57 +11:00
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
6b1e4ad5e8 Fix memory and performance issues in Karma test suite 2018-05-01 17:40:35 +00:00
12e3eff462 Fixed typos 2018-04-27 08:50:05 +00:00
b173e56461 Merge branch '30998-add-babel-rewire-plugin' into 'master'
Resolve "Add some way to mock and spy on default ES modules"

Closes #30998

See merge request gitlab-org/gitlab-ce!18116
2018-04-24 14:00:59 +00:00
407a800456 Add Capybara debugging methods to docs 2018-04-23 19:52:45 +00:00
5b44097cf7 Address latest feedback
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 13:02:07 +02:00
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
023d4f6f2f Move spec helpers/matchers/shared examples/contexts to their relevant folder
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 12:20:30 +02:00
44783480be document the spyOnDependency method 2018-04-23 00:54:21 -05:00
27a5deea38 Rename #qa slack channel to #quality in docs 2018-04-19 09:28:08 +02:00
bd1b2c665f use commander for safer cli argument parsing 2018-04-11 00:34:18 +02:00
029180f016 add documentation for karma testing with specific files/folders 2018-04-10 12:03:46 +02:00
88dffa45ce Rename package-qa in docs
In gitlab-org/gitlab-ce!17807 the `package-qa` job was renamed to
`package-and-qa`. But it was not renamed in the docs. So this change
fixes that.
2018-03-19 10:04:23 +01:00
2bdb578032 Port some RuboCop and doc changes from EE
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-02-13 16:33:00 +01:00
b593565538 Add note about live_debug only working on javascript enabled specs 2018-01-22 17:50:39 +00:00
408e3cc1c4 Update best_practices.md
Remove duplicate list item in "General Guidelines" Section.
2018-01-19 13:15:35 +00:00
0cc25f0f1b Update end_to_end_tests.md 2018-01-11 12:05:55 +00:00
8bdc6c74e8 Rephrase paragraph about e2e tests in merge requests in docs 2018-01-05 15:32:41 +01:00
e8acb3f117 Copy-edit end-to-end testing guide documentation 2018-01-04 12:09:14 +01:00
124ffb2134 Fix link to end-to-end testing docs from test pyramid 2018-01-02 14:42:28 +01:00
1aa25a3fe3 Copy-edit end-to-end testing guidelines 2018-01-02 14:37:01 +01:00
51bb5abe26 Link to end to end test guideline from test pyramid 2018-01-02 14:30:29 +01:00
629d966c48 Extend documentation on end-to-end integration tests 2018-01-02 14:22:48 +01:00
1f50eb4f57 Add docs about end-to-end testing / GitLab QA tests 2018-01-02 13:39:09 +01:00
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
506a4e7530 Merge branch 'docs/gitlab-runner' into 'master'
Change to new GitLab Runner name

Closes #39636

See merge request gitlab-org/gitlab-ce!15101
2017-11-02 12:33:35 +00:00
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
0364e07447 Address Douwe's feedback
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-11-02 12:02:51 +01:00
69b4c5c011 Exclude comments from specific docs 2017-11-01 15:56:40 +00:00
6bd2d594d7 Change to new GitLab Runner name 2017-10-31 11:20:40 +02:00
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
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
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
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
88bd5fa274 Update best_practices.md 2017-10-12 21:38:52 +00:00
77d636cc16 Add debugging section to testing_guide/best_practices.md. 2017-10-12 21:29:32 +00:00
9e5cb67e9d Fix a missing link and create a separate "Testing guides" section
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-11 16:33:57 +02:00
676840ff9c Refactor the Development documentation, and divide the Testing documentation into multiple pages 2017-10-11 05:59:34 +00:00