Skip to content

Instantly share code, notes, and snippets.

@vhorb
Created August 8, 2019 14:19
Show Gist options
  • Save vhorb/0c1974efea3757fb4323d797aebbd936 to your computer and use it in GitHub Desktop.
Save vhorb/0c1974efea3757fb4323d797aebbd936 to your computer and use it in GitHub Desktop.
CircleCI config to re-run failed rspec tests
- run:
name: run feature tests
command: |
TEST_FILES="$(circleci tests glob "spec/features/*_spec.rb" | circleci tests split --split-by=timings)"
echo Tests run on Google Chrome version: `google-chrome --version`
bundle exec rspec --format documentation \
--format RspecJunitFormatter \
--out /tmp/test-results/feature_rspec.xml \
$TEST_FILES || bundle exec rspec --format documentation \
--format RspecJunitFormatter \
--out /tmp/test-results/feature_rspec.xml \
"spec/features" --only-failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment