diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | spec/spec_helper.rb | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 4f79ffe3ca..e60f43b06d 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ # output from ci_reporter /spec/reports/ + +# rspec failure tracking +.rspec_status
\ No newline at end of file diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c392b4f1bb..cd2dc39469 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -57,6 +57,9 @@ RSpec.configure do |config| config.include Spec::Sudo config.include Spec::Permissions + # Enable flags like --only-failures and --next-failure + config.example_status_persistence_file_path = ".rspec_status" + if ENV["BUNDLER_SUDO_TESTS"] && Spec::Sudo.present? config.filter_run :sudo => true else |