Skip to content

Commit 7d0919a

Browse files
ijjktimneutkens
authored andcommitted
Break up basic test suite (vercel#6730)
* Break out client-navigation and rendering test from basic test * Try with parallelism dialed back to 3 * Update jest-junit for more compatible timings in CircleCI * Bump to test timings * Use filepath for suitename in jest-junit * Store reports as artifacts * Try using classname for timings * Bump * Remove reports from artifacts
1 parent 2c975b1 commit 7d0919a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+908
-824
lines changed

.circleci/config.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
root: ~/repo
1717
paths: ['.']
1818
test:
19-
parallelism: 6
19+
parallelism: 3
2020
docker:
2121
- image: circleci/node:8-browsers
2222
working_directory: ~/repo
@@ -25,9 +25,10 @@ jobs:
2525
at: .
2626
- run:
2727
name: Tests
28-
command: yarn testall $(circleci tests glob "test/**/*.test.*" | circleci tests split --split-by=timings)
28+
command: yarn testall $(circleci tests glob "test/**/*.test.*" | circleci tests split --split-by=timings --timings-type=classname)
2929
environment:
3030
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
31+
JEST_JUNIT_CLASSNAME: '{filepath}'
3132
- store_test_results:
3233
path: ~/repo/reports
3334
deploy:

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"examples/with-ioc/**",
5555
"examples/with-kea/**",
5656
"examples/with-mobx/**",
57-
"test/integration/basic/pages/throw-undefined.js"
57+
"test/integration/client-navigation/pages/throw-undefined.js"
5858
]
5959
},
6060
"devDependencies": {
@@ -82,7 +82,7 @@
8282
"get-port": "3.2.0",
8383
"isomorphic-unfetch": "3.0.0",
8484
"jest-cli": "23.6.0",
85-
"jest-junit": "^5.0.0",
85+
"jest-junit": "6.3.0",
8686
"lerna": "^3.4.0",
8787
"lint-staged": "4.2.3",
8888
"mkdirp": "0.5.1",

0 commit comments

Comments
 (0)