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
1c8c4cb7
Commit
1c8c4cb7
authored
Jun 30, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explanation for rspec options
- `filter_run focus: true` - `run_all_when_everything_filtered = true`
parent
0e7aa6fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
spec/fast_spec_helper.rb
spec/fast_spec_helper.rb
+2
-0
spec/spec_helper.rb
spec/spec_helper.rb
+3
-0
No files found.
spec/fast_spec_helper.rb
View file @
1c8c4cb7
...
...
@@ -25,6 +25,8 @@ ActiveSupport::XmlMini.backend = 'Nokogiri'
RSpec
.
configure
do
|
config
|
unless
ENV
[
'CI'
]
# Allow running `:focus` examples locally,
# falling back to all tests when there is no `:focus` example.
config
.
filter_run
focus:
true
config
.
run_all_when_everything_filtered
=
true
end
...
...
spec/spec_helper.rb
View file @
1c8c4cb7
...
...
@@ -110,8 +110,11 @@ RSpec.configure do |config|
end
unless
ENV
[
'CI'
]
# Allow running `:focus` examples locally,
# falling back to all tests when there is no `:focus` example.
config
.
filter_run
focus:
true
config
.
run_all_when_everything_filtered
=
true
# Re-run failures locally with `--only-failures`
config
.
example_status_persistence_file_path
=
'./spec/examples.txt'
end
...
...
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