Commit Graph

51 Commits

Author SHA1 Message Date
Marcel Amirault 29ba393004 Docs: Add automatic redirects to last batch of moved files 2019-03-26 17:21:22 +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
Jacob Vosmaer 147e2b21be Let fetch_ref pull from Gitaly instead of from disk 2017-10-04 12:57:41 +02:00
Robert Speicher 06daba75aa Merge branch 'evn-add-neg-tests' into 'master'
Test for what should not be there as well

[ci skip]

See merge request gitlab-org/gitlab-ce!14492
2017-09-28 13:43:05 +00:00
Rémy Coutable 73f27db264 Update CI parallelization description
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-27 13:34:37 +02:00
ernstvn e16878bbef Test for what should not be there as well 2017-09-25 17:56:52 -07:00
Michael Kozono c199535d13 Reenable MySQL tests on all branches
To protect master from surprise failures, as long as we continue to support MySQL.
2017-08-25 11:39:12 -07:00
Douwe Maan 65c223ae83 Revert "Merge branch 'mk-reenable-mysql-tests-on-all-branches' into 'master'"
This reverts merge request !13812
2017-08-25 08:39:55 +00:00
Michael Kozono 9f7f78570f Reenable MySQL tests on all branches
To protect master from surprise failures, as long as we continue to support MySQL.
2017-08-24 11:45:37 -07:00
Robert Speicher bd36637bdb Merge branch '35804-document-table-based-tests' into 'master'
Use rspec-parameterized for table-based tests

Closes #35804

See merge request !13469
2017-08-14 18:26:53 +00:00
Sean McGivern 2a4304aea7 Merge branch 'rc/32308-rspec-retry-hack' into 'master'
Detect and keep track of flaky specs

See merge request !13021
2017-08-11 14:59:17 +00:00
Rémy Coutable 40bbc9d900 Document rspec-retry and rspec-flaky
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-11 14:56:00 +02:00
Lin Jen-Shin 4f0fa13eb8 Show error message for API 500 error in tests, and
document have_gitlab_http_status
2017-08-11 20:50:35 +08:00
Nick Thomas caa498fd31 Use rspec-parameterized for table-based tests 2017-08-11 12:57:06 +01:00
Robert Speicher add765e623 Remove documentation about rules that are now enforced by RuboCop
RuboCop is _living_ documentation! 

[ci skip]
2017-08-10 19:29:42 -04:00
Robert Speicher 64d6a48b56 Remove documentation about `:empty_project` since we're removing it 2017-08-02 15:26:16 -04:00
Robert Speicher b92709eaf4 Remove developer documentation about not describing symbols
This is now covered by rubocop-rspec.
2017-07-18 16:58:05 -04:00
Robert Speicher fc76ff1051 Disable Rails logging in CI test environments
See https://jtway.co/speed-up-your-rails-test-suite-by-6-in-1-line-13fedb869ec4
2017-07-18 12:33:15 -04:00
Rémy Coutable 8a23cc7e82
Add a link to spec/migrations/README.md in the testing documentation
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-15 18:45:13 +02:00
Robert Speicher 0a556523cf Enable `RSpec/DescribedClass` cop 2017-05-01 11:12:13 -04:00
Zeger-Jan van de Weg 6f5b579f94 Use rspec-set to speed up examples 2017-04-26 14:46:26 +00:00
Rémy Coutable 3b560dd04b
Remove outdated ci_setup.md doc page and document MySQL and RSpec profiling for specific branches
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-25 20:40:44 +02:00
Rémy Coutable a7e8939d2f
Improve the testing documentation
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-12 11:19:47 +02:00
Rémy Coutable 6de5aad237
Fix link again
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-11 15:19:50 +02:00
Rémy Coutable c0b5ddc73d
Fix path to migrations
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-11 13:48:55 +02:00
Rémy Coutable 947617f637
Fix wrong link
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-11 10:04:42 +02:00
Rémy Coutable 2b606a3a2e Re-organize testing doc, and add RSpec structure doc
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-10 16:40:33 +02:00
Rémy Coutable 0aafb6abb8 Document GitLab QA
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-10 16:40:33 +02:00
Rémy Coutable 91fb9f446f Improve testing documentation with Robert's feedback
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-10 16:40:33 +02:00
Rémy Coutable 35bf7c7e47 Firs pass at improving the testing documentation
[ci skip]

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-10 16:40:33 +02:00
Filipa Lacerda 8c3bdc853a Creates Frontend Style guide 2017-03-22 19:30:54 +00:00
Mike Greiling 95d38ac9f9 remove all references to the .es6 in our config files and documentation 2017-03-15 18:31:01 -05:00
Rémy Coutable 3e6a5cf0ed Merge branch 'rs-document-timecop' into 'master'
Document Timecop usage for time-sensitive tests

See merge request !9383
2017-02-20 18:39:26 +00:00
Rémy Coutable 5643e4d1ea Merge branch 'link-to-rspec-features-docs' into 'master'
Add link to external documentation of rspec-rails feature specs

See merge request !8973
2017-02-20 15:59:52 +00:00
Robert Speicher ec3262549b Document Timecop usage for time-sensitive tests 2017-02-20 10:39:51 -05:00
Richard Macklin 8aa66fe65e Add more links in the Features/Integration testing documentation
- Move the rspec-rails feature spec link to the Features/Integration
  section
- Mention and link to capybara and poltergeist there as well

[ci skip]
2017-02-13 23:59:09 -08:00
Clement Ho 49c4059a32 Replace teaspoon references with Karma 2017-02-10 10:50:12 -06:00
Richard Macklin 4d7b299027 Add link to external documentation of rspec-rails feature specs
[ci skip]
2017-02-03 21:52:03 -08:00
Rémy Coutable 39378d0e97 Document that we always use `do...end` for `before` in RSpec
[ci skip]

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-24 17:36:09 +08:00
Lin Jen-Shin 9c4e0d6445 Use `Gitlab.config.gitlab.host` over `'localhost'`
This would fix long standing failures running tests on
my development machine, which set `Gitlab.config.gitlab.host`
to another host because it's not my local computer. Now I
finally cannot withstand it and decided to fix them once and
for all.
2016-11-18 20:17:10 +08:00
Rémy Coutable 6002827996 Add a gotcha about FactoryGirl sequences
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/24341

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-16 17:55:11 +01:00
Drew Blessing af5322e90b Add Rake task to create/repair GitLab Shell hooks symlinks 2016-11-01 14:52:59 -05:00
Bryce Johnson 5fb226a934 Remove leftover references to coffeescript from comments and docs. 2016-10-31 11:39:52 +01:00
Robert Speicher 75739e54be Enable RSpec/NotToNot cop and auto-correct offenses
Also removes the note from the development/testing.md guide
2016-05-24 15:40:29 -04:00
Robert Speicher df9a7c6b4a Add a note to testing docs about the `:each` argument to RSpec hooks
[ci skip]
2016-05-05 17:22:18 -04:00
Robert Speicher cedcc1453c Minor Testing guide copyedits
[ci skip]
2016-04-09 01:19:21 -04:00
Robert Speicher 6ffda88c97 Add a link back to Development documentation to Testing guide
[ci skip]
2016-04-01 20:36:59 -04:00
Robert Speicher 2e83b56203 Add a section about `let` to the Testing guide
[ci skip]
2016-04-01 20:31:16 -04:00
Robert Speicher 60f4081e13 Factories don't have to be limited to `ActiveRecord` objects
[ci skip]
2016-04-01 20:31:12 -04:00
Robert Speicher 0b9d9816f8 Add a note about Four-Phase Test to Testing guide
[ci skip]
2016-04-01 20:31:12 -04:00