Skip to content

Commit

Permalink
Merge pull request #5318 from avalonmediasystem/circleci_failed_test_…
Browse files Browse the repository at this point in the history
…rerun

Use `circleci tests run` to enable rerun only failed tests option
  • Loading branch information
cjcolvar authored Aug 22, 2023
2 parents b477907 + d71dbbf commit 7d723b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ jobs:

# Pull in the parallel_rspec step and modify it to ensure that test results get stored
# - samvera/parallel_rspec
- run: mkdir /tmp/test-results
- run:
name: Run rspec in parallel
command: |
mkdir /tmp/test-results
bundle exec rspec --format progress --format RspecJunitFormatter -o /tmp/test-results/rspec.xml $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
circleci tests glob "spec/**/*_spec.rb" | circleci tests run --command="xargs bundle exec rspec --format progress --format RspecJunitFormatter -o /tmp/test-results/rspec.xml" --verbose --split-by=timings
# collect reports
- store_test_results:
path: /tmp/test-results
Expand Down

0 comments on commit 7d723b4

Please sign in to comment.