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.
This commit is contained in:
Maikel Linke
2023-01-31 15:45:21 +11:00
parent d9aa125903
commit d3251dc03f

View File

@@ -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