Commit Graph

455 Commits

Author SHA1 Message Date
Mark Lapierre 25be3f83af Fix Review Apps testing guide
Changes from docs review
2018-10-29 20:10:56 +00:00
Mark Lapierre df17f35528 Update review apps testing guide
Review Apps are now deployed automatically.
Note that if auth fails you might need to stop and redeploy the app.
2018-10-26 15:17:54 +00: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
Dylan Griffith f5f5d6ea1f Resolve "Un-vendor CI templates" 2018-09-26 15:39:27 +00:00
Rémy Coutable 03b0d3d6bb
Document review apps setup for gitlab-{ce,ee}
Signed-off-by: Rémy Coutable <remy@rymai.me>
Signed-off-by: ddavison <ddavison@gitlab.com>
2018-09-17 13:40:14 -04:00
Brett Walker b0be58a1b3 Resolve "CE documentation is not CommonMark compliant" 2018-09-06 16:52:18 +00:00
Dan Davison d67936b68f add initial smoke tests and documentation 2018-08-20 18:13:54 +00:00
Toon Claes 13afac6533 First version of pry_debugging.md 2018-07-20 11:56:17 +02:00
Winnie Hellmann d8013704b6 Document that we don't want to wait in tests 2018-07-09 14:53:33 +00: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
Mike Greiling 6b1e4ad5e8 Fix memory and performance issues in Karma test suite 2018-05-01 17:40:35 +00:00
Pascal Borreli 12e3eff462 Fixed typos 2018-04-27 08:50:05 +00:00
Clement Ho 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
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
Rémy Coutable 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
Mike Greiling 44783480be
document the spyOnDependency method 2018-04-23 00:54:21 -05:00
Grzegorz Bizon 27a5deea38 Rename #qa slack channel to #quality in docs 2018-04-19 09:28:08 +02:00
Lukas Eipert bd1b2c665f
use commander for safer cli argument parsing 2018-04-11 00:34:18 +02:00
Lukas Eipert 029180f016
add documentation for karma testing with specific files/folders 2018-04-10 12:03:46 +02:00
Toon Claes 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
Rémy Coutable 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
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
Andrew Newdigate 0cc25f0f1b Update end_to_end_tests.md 2018-01-11 12:05:55 +00:00
Grzegorz Bizon 8bdc6c74e8 Rephrase paragraph about e2e tests in merge requests in docs 2018-01-05 15:32:41 +01:00
Grzegorz Bizon e8acb3f117 Copy-edit end-to-end testing guide documentation 2018-01-04 12:09:14 +01:00
Grzegorz Bizon 124ffb2134 Fix link to end-to-end testing docs from test pyramid 2018-01-02 14:42:28 +01:00
Grzegorz Bizon 1aa25a3fe3 Copy-edit end-to-end testing guidelines 2018-01-02 14:37:01 +01:00
Grzegorz Bizon 51bb5abe26 Link to end to end test guideline from test pyramid 2018-01-02 14:30:29 +01:00
Grzegorz Bizon 629d966c48 Extend documentation on end-to-end integration tests 2018-01-02 14:22:48 +01:00
Grzegorz Bizon 1f50eb4f57 Add docs about end-to-end testing / GitLab QA tests 2018-01-02 13:39:09 +01: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
Marcia Ramos 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
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
Achilleas Pipinellis 69b4c5c011 Exclude comments from specific docs 2017-11-01 15:56:40 +00:00
Achilleas Pipinellis 6bd2d594d7
Change to new GitLab Runner name 2017-10-31 11:20:40 +02: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 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
Rémy Coutable 676840ff9c Refactor the Development documentation, and divide the Testing documentation into multiple pages 2017-10-11 05:59:34 +00:00