diff --git a/.circleci/setupAndTestBackendSDKWithFreeCore.sh b/.circleci/setupAndTestBackendSDKWithFreeCore.sh index 2bd023ed4..cf104b544 100755 --- a/.circleci/setupAndTestBackendSDKWithFreeCore.sh +++ b/.circleci/setupAndTestBackendSDKWithFreeCore.sh @@ -113,11 +113,12 @@ export TEST_MODE=testing export SUPERTOKENS_CORE_TAG=$coreTag export NODE_PORT=8081 export INSTALL_PATH=../supertokens-root -export multi="spec=- mocha-junit-reporter=/dev/null" +export MOCHA_FILE=test-results/junit.xml +multi="spec=- mocha-junit-reporter=$MOCHA_FILE" mkdir -p test-results TEST_FILES=$(circleci tests glob "test/**/*.test.js") -echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --reporter mocha-multi --reporter-options mocha-junit-reporter:output=test-results/junit.xml --node-option no-experimental-fetch -r test/fetch-polyfill.mjs --timeout 500000 --no-config" --verbose --split-by=timings +echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --reporter mocha-multi --node-option no-experimental-fetch -r test/fetch-polyfill.mjs --timeout 500000 --no-config" --verbose --split-by=timings # kill test-server kill $(lsof -t -i:$API_PORT)