Created
August 8, 2019 14:19
-
-
Save vhorb/0c1974efea3757fb4323d797aebbd936 to your computer and use it in GitHub Desktop.
CircleCI config to re-run failed rspec tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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