mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user