Skip to content

Commit

Permalink
Merge pull request #107 from pixielabs/configure-rspec-only-failures-…
Browse files Browse the repository at this point in the history
…flag

Configure RSpec --only-failures flag
  • Loading branch information
PatMiekina committed Nov 24, 2023
2 parents d3643ee + 507c2ad commit f35bf28
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@

# rspec failure tracking
.rspec_status

# Ignore the file recording test run statuses.
spec/dummy-app/spec/examples.txt
3 changes: 3 additions & 0 deletions spec/dummy-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@

# Ignore master key for decrypting credentials and more.
/config/master.key

# Ignore the file recording test run statuses.
/spec/example.txt
10 changes: 6 additions & 4 deletions spec/dummy-app/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
# triggering implicit auto-inclusion in groups with matching metadata.
config.shared_context_metadata_behavior = :apply_to_host_groups

# Allows RSpec to persist some state between runs in order to support
# the `--only-failures` and `--next-failure` CLI options. We recommend
# you configure your source control system to ignore this file.
config.example_status_persistence_file_path = "spec/examples.txt"

# The settings below are suggested to provide a good initial experience
# with RSpec, but feel free to customize to your heart's content.
=begin
Expand All @@ -54,10 +59,7 @@
# metadata: `fit`, `fdescribe` and `fcontext`, respectively.
config.filter_run_when_matching :focus
# Allows RSpec to persist some state between runs in order to support
# the `--only-failures` and `--next-failure` CLI options. We recommend
# you configure your source control system to ignore this file.
config.example_status_persistence_file_path = "spec/examples.txt"
# Limits the available syntax to the non-monkey patched syntax that is
# recommended. For more details, see:
Expand Down

0 comments on commit f35bf28

Please sign in to comment.