Skip to content
Permalink
Browse files

Retry e2e tests automatically in case of failure

Tests should be consistent. That is true for our unit tests suite, but it is something that is harded to achieve for functional tests. Our end to end tests often times fail due to factors outside of our control, and simply manually restarting the Travis build is enough to make them pass (example: woocommerce/woocommerce#21150 (comment)). This commits uses `travis_retry` to make Travis automatically retry a maximum of three times to run WC e2e tests in case of a failure.
  • Loading branch information...
rodrigoprimo committed Aug 23, 2018
1 parent d5e229f commit 67b5b270f355ed91dac100a028cc8d36b5f6da6e
Showing with 1 addition and 1 deletion.
  1. +1 −1 .travis.yml
@@ -42,7 +42,7 @@ before_script:
script:
- bash tests/bin/phpunit.sh
- bash tests/bin/phpcs.sh
- bash tests/bin/run-e2e-CI.sh
- travis_retry bash tests/bin/run-e2e-CI.sh

after_script:
- bash tests/bin/travis.sh after

0 comments on commit 67b5b27

Please sign in to comment.
You can’t perform that action at this time.