From d3251dc03f958aeaf670bc527cdebf89cefeabf4 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 31 Jan 2023 15:45:21 +1100 Subject: [PATCH] Enable RSpec's status file for --next-failure With this config, we can use `rspec -n` which is shorthand for: rspec --only-failures --fail-fast --order defined This is much easier than running specs by line numbers. --- spec/spec_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4b76dbb9be..a51e5d0361 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -42,6 +42,9 @@ RSpec.configure do |config| # instead of true. config.use_transactional_fixtures = false + # You can use `rspec -n` to run only failed specs. + config.example_status_persistence_file_path = "tmp/rspec-status.txt" + # Helpers config.include ViewComponent::TestHelpers, type: :component config.include ControllerRequestsHelper, type: :controller