- npm ci --cache .npm --prefer-offline
# Optionally add a couple of fields such as the git hash and link to the build
- npx testmo automation:resources:add-field --name git --type string
--value $CI_COMMIT_SHORT_SHA --resources resources.json
- npx testmo automation:resources:add-link --name build
--url $CI_PIPELINE_URL --resources resources.json
- npx testmo automation:run:create
--name "Parallel mocha test run"
--resources resources.json
--source "unit-tests" > testmo-run-id.txt
- echo "TESTMO_RUN_ID=$(cat testmo-run-id.txt)" > testmo.env
- npm ci --cache .npm --prefer-offline
- npx testmo automation:run:submit-thread
-- npm run mocha-junit-parallel # Note space after --
- results/mocha-test-results.xml
- npm ci --cache .npm --prefer-offline
- npx testmo automation:run:complete