Skip to content
Snippets Groups Projects
Commit 5e610cb1c5cd authored by John T Skarbek's avatar John T Skarbek
Browse files

Workflow: Provide mechanism to allow rspec failures only

* Adding this configuration makes it a bit easier on the Engineer
  mangling with rspec
* With this we can now `rspec --only-failures` which removes tests that
  succeeded from being run the next time it is executed
* This should improve the time to development if this flag is utilized
* This flag writes some data out that should be ignored during commit
* We ensure that we do not write this data out when rspec is run inside
  of CI
parent ea58ae0b4c70
No related branches found
No related tags found
2 merge requests!65heptapod#658: intermediate release to test the shift,!64GitLab 14.8
......@@ -32,3 +32,5 @@
build_facts
node_modules
spec/examples.txt
......@@ -16,6 +16,7 @@
Knapsack::Adapters::RSpecAdapter.bind if Gitlab::Util.get_env('USE_KNAPSACK')
RSpec.configure do |config|
config.example_status_persistence_file_path = './spec/examples.txt' unless Gitlab::Util.get_env('CI')
config.filter_run focus: true
config.run_all_when_everything_filtered = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment