From ddb13212f93315b5d15deefd0276eec785548e09 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Sun, 29 Mar 2020 21:42:53 +0200 Subject: [PATCH] Make RSpec support --only-failures, --next-failure (#807) - https://www.rubydoc.info/github/rspec/rspec-core/RSpec%2FCore%2FConfiguration:example_status_persistence_file_path --- .gitignore | 1 + spec/spec_helper.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 4a481d25..fdf1d35f 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ # Ignores that should be in the global gitignore /coverage +spec/examples.txt diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 81ec3361..66882b34 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -54,6 +54,7 @@ def reset!(hook = nil) $stderr = @orig_std_err end + config.example_status_persistence_file_path = 'spec/examples.txt' config.filter_run :focus => true config.run_all_when_everything_filtered = true config.order = :random