Skip to content

Commit ec28785

Browse files
authored
rerun failed tests (#1333)
1 parent 0756342 commit ec28785

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

DEVELOPMENT.md

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ This project contains both Integration and Unit tests.
2424
__Never__ run the test suite against an organization with production data.
2525
The testing framework in this repository is `@cucumber/cucumber`, and can be executed via `yarn run test`.
2626

27-
*Previously* failed tests can be rerecorded by running `yarn run test:rerecord`.
28-
2927
By default integration tests use recorded API responses stored in cassettes. To record new API responses run the tests with `RECORD=true`. To run integration tests against API without recording cassettes, run the tests with `RECORD=none`.
3028

3129
**IMPORTANT**:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"lint:fix-examples": "yarn install --ignore-scripts; eslint examples --ext .ts --fix; prettier --write --ignore-unknown examples",
6060
"prepare": "yarn run build",
6161
"test": "node bin/dd-cucumber-js features/*/*.feature",
62-
"test:rerecord": "RECORD=true node bin/dd-cucumber-js @rerun.txt",
62+
"test:retry": "node bin/dd-cucumber-js @rerun.txt",
6363
"jest-test": "jest --no-cache",
6464
"jest-coverage": "jest --no-cache --coverage"
6565
},

run-tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ fi
2828
# Run tests
2929
yarn run test
3030
TEST_RESULT=$?
31-
if [ "$RERECORD_FAILED_TESTS" == "true" -a "$TEST_RESULT" -ne "0" ]; then
32-
yarn run test:rerecord
31+
if [ "$RECORD" == "none" ]; then
32+
yarn run test:retry
3333
TEST_RESULT=$?
3434
fi
3535

0 commit comments

Comments
 (0)