@@ -135,7 +135,7 @@ commands:
135135 steps :
136136 - restore_cache :
137137 keys :
138- - &source-cache source-v1-win-{{ .Branch }}-{{ .Revision }}
138+ - &source-cache source-v1-win-{{.Environment.CIRCLE_NODE_INDEX}}{{ .Branch }}-{{ .Revision }}
139139 - checkout
140140 - save_cache :
141141 key : *source-cache
@@ -218,22 +218,12 @@ jobs:
218218 - run :
219219 name : Run Windows tests in parallel
220220 command : |
221- echo "PWD: $PWD"
222- PWD_WSL=$(echo $PWD | sed 's|/c/|C:\\\\|g; s|/|\\\\|g')
223- GLOB=$(circleci tests glob "test/windows/**/*.spec.ts")
224- echo "GLOB: $GLOB"
225- GLOB_SED=$(echo $GLOB | sed s#$PWD_WSL##g | sed 's#\\\\#/#g')
226- echo "GLOB_SED: $GLOB_SED"
227- LIST_TEST=$(npx jest --listTests --config test/windows/jest.config.js)
228- echo "LIST_TEST: $LIST_TEST"
229- LIST_TEST_SED=$(echo $LIST_TEST | sed s#$PWD_WSL##g | sed 's#\\\\#/#g')
230- echo "LIST_TEST_SED: $LIST_TEST_SED"
231- LIST_TEST_SED_TWO=$(echo $LIST_TEST | sed s#$PWD_WSL\\\\##g | sed 's#\\\\#/#g')
232- echo "LIST_TEST_SED_TWO: $LIST_TEST_SED_TWO"
233221 TEST=$(circleci tests glob "test/windows/**/*.spec.ts" | circleci tests split --split-by=timings | sed 's#\\\\#/#g')
234222 echo "TEST: $TEST"
235- npm run test-jest-windows -- $TEST
236- no_output_timeout : 20m
223+ npm run test-jest-windows -- --reporters=default --reporters=jest-junit $TEST
224+ environment :
225+ JEST_JUNIT_OUTPUT_DIR : ' ./reports/junit'
226+ JEST_JUNIT_ADD_FILE_ATTRIBUTE : ' true' # You need this to make --split-by=timings work. Once added, it'll work from the second run onwards.
237227 - store_test_results :
238228 path : reports
239229 test_jest_windows_no_docker :
@@ -251,7 +241,10 @@ jobs:
251241 name : Run Windows tests in parallel
252242 command : |
253243 TEST=$(circleci tests glob "test/windows/**/*.spec.ts" | circleci tests split --split-by=timings | sed 's#\\\\#/#g')
254- npm run test-jest-windows -- $TEST
244+ npm run test-jest-windows -- --reporters=default --reporters=jest-junit $TEST
245+ environment :
246+ JEST_JUNIT_OUTPUT_DIR : ' ./reports/junit'
247+ JEST_JUNIT_ADD_FILE_ATTRIBUTE : ' true' # You need this to make --split-by=timings work. Once added, it'll work from the second run onwards.
255248 - store_test_results :
256249 path : reports
257250 build_cli :
0 commit comments