summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-02-20 15:59:52 +0000
committerRémy Coutable <remy@rymai.me>2017-02-20 15:59:52 +0000
commit5643e4d1ea8899f32e39be0f393f7be3c4b206c4 (patch)
treed2c02496e406d8794ad580e908fdec0a32770a8a
parentfbbbf1e4e77768a40b835455f17749384f7c4984 (diff)
parent8aa66fe65e381e49b1504df024f1bb361f0878f3 (diff)
downloadgitlab-ce-5643e4d1ea8899f32e39be0f393f7be3c4b206c4.tar.gz
Merge branch 'link-to-rspec-features-docs' into 'master'
Add link to external documentation of rspec-rails feature specs See merge request !8973
-rw-r--r--doc/development/testing.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/development/testing.md b/doc/development/testing.md
index 761847b2bab..500cbefcffb 100644
--- a/doc/development/testing.md
+++ b/doc/development/testing.md
@@ -115,6 +115,10 @@ Here are some things to keep in mind regarding test performance:
### Features / Integration
+GitLab uses [rspec-rails feature specs] to test features in a browser
+environment. These are [capybara] specs running on the headless [poltergeist]
+driver.
+
- Feature specs live in `spec/features/` and should be named
`ROLE_ACTION_spec.rb`, such as `user_changes_password_spec.rb`.
- Use only one `feature` block per feature spec file.
@@ -122,6 +126,10 @@ Here are some things to keep in mind regarding test performance:
- Avoid scenario titles that add no information, such as "successfully."
- Avoid scenario titles that repeat the feature title.
+[rspec-rails feature specs]: https://github.com/rspec/rspec-rails#feature-specs
+[capybara]: https://github.com/teamcapybara/capybara
+[poltergeist]: https://github.com/teampoltergeist/poltergeist
+
## Spinach (feature) tests
GitLab [moved from Cucumber to Spinach](https://github.com/gitlabhq/gitlabhq/pull/1426)