Skip to content

Commit 840a116

Browse files
committed
split tests into parts
1 parent aa6edd1 commit 840a116

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.travis.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,34 @@ matrix:
1414
include:
1515
- os: linux
1616
node_js: "10"
17-
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration"
17+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration1"
1818
- os: linux
1919
node_js: "10"
20-
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration"
20+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration1"
2121
- os: linux
2222
node_js: "10"
23-
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration"
23+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration1"
2424
- os: linux
2525
node_js: "10"
26-
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration"
26+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration1"
2727
- os: linux
2828
node_js: "10"
29-
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration"
29+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration1"
30+
- os: linux
31+
node_js: "10"
32+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration2"
33+
- os: linux
34+
node_js: "10"
35+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration2"
36+
- os: linux
37+
node_js: "10"
38+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration2"
39+
- os: linux
40+
node_js: "10"
41+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration2"
42+
- os: linux
43+
node_js: "10"
44+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART="integration2"
3045
allow_failures:
3146
- os: osx
3247
fast_finish: true

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@
102102
"test:integration": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\"",
103103
"test:basic": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/{TestCasesNormal,StatsTestCases,ConfigTestCases}.test.js\"",
104104
"test:unit": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
105-
"travis:integration": "yarn cover:init && yarn cover:integration --ci $JEST && yarn cover:report-min",
105+
"travis:integration1": "yarn cover:init && yarn cover:integration1 --ci $JEST && yarn cover:report-min",
106+
"travis:integration2": "yarn cover:init && yarn cover:integration2 --ci $JEST && yarn cover:report-min",
106107
"travis:basic": "yarn test:basic --ci $JEST",
107108
"travis:unit": "yarn cover:init && yarn cover:unit --ci",
108109
"travis:lint": "yarn lint",
@@ -127,6 +128,8 @@
127128
"cover:all": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --coverage",
128129
"cover:single": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --coverage",
129130
"cover:integration": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\" --coverage",
131+
"cover:integration1": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\" --coverage \"test/((?!TestCases)|TestCasesD)\"",
132+
"cover:integration2": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\" --coverage \"test/TestCases(?!D)\"",
130133
"cover:unit": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
131134
"cover:report": "istanbul report",
132135
"cover:report-min": "istanbul report --report lcovonly"

0 commit comments

Comments
 (0)