Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dd84b9a0
Commit
dd84b9a0
authored
Aug 13, 2019
by
Giorgenes Gelatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention focus: true in the specs
parent
f74de0c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
doc/development/testing_guide/best_practices.md
doc/development/testing_guide/best_practices.md
+1
-0
No files found.
doc/development/testing_guide/best_practices.md
View file @
dd84b9a0
...
...
@@ -70,6 +70,7 @@ bundle exec rspec spec/[path]/[to]/[spec].rb
-
On
`before`
and
`after`
hooks, prefer it scoped to
`:context`
over
`:all`
-
When using
`evaluate_script("$('.js-foo').testSomething()")`
(or
`execute_script`
) which acts on a given element,
use a Capyabara matcher beforehand (e.g.
`find('.js-foo')`
) to ensure the element actually exists.
-
Use
`focus: true`
to isolate parts of the specs you want to run.
[
four-phase-test
]:
https://robots.thoughtbot.com/four-phase-test
...
...
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