Skip to content

Commit b29ec11

Browse files
committed
Track RSpec failures to easily retry them when debugging
1 parent 534d18b commit b29ec11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'tmpdir'
2+
13
RSpec.configure do |config|
24
config.expect_with :rspec do |expectations|
35
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
@@ -17,6 +19,8 @@
1719
config.default_formatter = 'doc'
1820
end
1921

22+
config.example_status_persistence_file_path = "#{Dir.tmpdir()}/playground-test-failures"
23+
2024
config.order = :random
2125

2226
Kernel.srand config.seed

0 commit comments

Comments
 (0)