Skip to content

Commit

Permalink
Add mocha junit file name fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
deepjyoti30-st committed Dec 4, 2024
1 parent 208ff60 commit 0332e0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/setupAndTestBackendSDKWithFreeCore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 0332e0f

Please sign in to comment.