BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
5643e4d1
Commit
5643e4d1
authored
Feb 20, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'link-to-rspec-features-docs' into 'master'
Add link to external documentation of rspec-rails feature specs See merge request !8973
parents
fbbbf1e4
8aa66fe6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
testing.md
doc/development/testing.md
+8
-0
No files found.
doc/development/testing.md
View file @
5643e4d1
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment