Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
chore: Retry failed integration tests up to 3 times (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
jn1119 authored Mar 13, 2021
1 parent dd3aa35 commit 5e3218c
Show file tree
Hide file tree
Showing 3 changed files with 952 additions and 346 deletions.
3 changes: 2 additions & 1 deletion main/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Amazon Web Services",
"license": "Apache-2.0",
"scripts": {
"intTest": "NODE_ENV=test jest --config jest.config.js --passWithNoTests",
"intTest": "NODE_ENV=test jest --testRunner='jest-circus/runner' --config jest.config.js --passWithNoTests",
"intTestWatch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll",
"lint": "pnpm run lint:eslint && pnpm run lint:prettier",
"lint:eslint": "eslint --ignore-path .gitignore . ",
Expand Down Expand Up @@ -43,6 +43,7 @@
"eslint-plugin-prettier": "^3.1.2",
"husky": "^3.1.0",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"jest-junit": "^10.0.0",
"prettier": "^1.19.1",
"pretty-quick": "^1.11.1",
Expand Down
3 changes: 3 additions & 0 deletions main/integration-tests/support/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class Setup {

// An object to abstract out the default setup (eg. default test project)
this.defaults = await this.getDefaults();

// Retry failed tests up to three times
jest.retryTimes(3);
}

async defaultAdminSession() {
Expand Down
Loading

0 comments on commit 5e3218c

Please sign in to comment.