Skip to content

Commit c660b50

Browse files
committed
chore: use circleci timings split for e2e tests
1 parent b898d11 commit c660b50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

circle.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@ commands:
425425
steps:
426426
- restore_cached_workspace
427427
- run:
428-
command: yarn workspace @packages/server test ./test/e2e/$(( $CIRCLE_NODE_INDEX ))_*spec* --browser <<parameters.browser>>
428+
command: |
429+
SPECS=`circleci tests glob "/root/cypress/packages/server/test/e2e/*spec*" | circleci tests split --split-by=timings`
430+
echo SPECS=$SPECS
431+
yarn workspace @packages/server test $SPECS --browser <<parameters.browser>>
429432
- verify-mocha-results
430433
- store_test_results:
431434
path: /tmp/cypress

0 commit comments

Comments
 (0)