Skip to content

Commit bce1eaf

Browse files
committed
Add rspec status persistence file
This allows rspec to "remember" the last test run, allowing for commands like `rspec --only-failures`, which should improve developer UX. Picked `spec/tmp/examples.txt` since it's idiomatic to call this file examples.txt and `spec/tmp` was already in the gitignore. It's a small thing but I don't think there's an argument against having it.
1 parent b5d918f commit bce1eaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
c.filter_run focus: true
5050
c.run_all_when_everything_filtered = true
5151
c.formatter = 'documentation'
52+
c.example_status_persistence_file_path = 'spec/tmp/examples.txt'
5253

5354
c.around do |example|
5455
Timeout.timeout(120) do

0 commit comments

Comments
 (0)