From 0332e0fdc176d8aac09e071dded4fd9ce46703b0 Mon Sep 17 00:00:00 2001 From: Deepjyoti Barman Date: Wed, 4 Dec 2024 10:00:01 +0530 Subject: [PATCH] Add mocha junit file name fixes --- .circleci/setupAndTestBackendSDKWithFreeCore.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)