Skip to content

Commit 5c01c68

Browse files
committed
Automatically rerun failed scenarios
1 parent 884ddec commit 5c01c68

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ install:
4141

4242
script:
4343
- composer phpunit
44-
- composer behat
44+
- composer behat || composer behat-rerun
4545

4646
jobs:
4747
include:

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"wp-cli/db-command": "^1.3 || ^2",
1919
"wp-cli/entity-command": "^1.3 || ^2",
2020
"wp-cli/extension-command": "^1.2 || ^2",
21-
"wp-cli/wp-cli-tests": "^2"
21+
"wp-cli/wp-cli-tests": "^2.0.7"
2222
},
2323
"config": {
2424
"process-timeout": 7200,
@@ -45,6 +45,7 @@
4545
"prefer-stable": true,
4646
"scripts": {
4747
"behat": "run-behat-tests",
48+
"behat-rerun": "rerun-behat-tests",
4849
"lint": "run-linter-tests",
4950
"phpcs": "run-phpcs-tests",
5051
"phpunit": "run-php-unit-tests",

0 commit comments

Comments
 (0)