diff --git a/.circleci/config_continue.yml b/.circleci/config_continue.yml index 1d13664a0..dc23b05f3 100644 --- a/.circleci/config_continue.yml +++ b/.circleci/config_continue.yml @@ -73,8 +73,6 @@ jobs: type: string fdi-version: type: string - environment: - MOCHA_FILE: test_report/report_node-<< parameters.fdi-version >>.xml steps: - checkout - run: echo "127.0.0.1 localhost.org" >> /etc/hosts @@ -84,7 +82,7 @@ jobs: - run: update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk-15.0.1/bin/javac" 2 - run: (cd .circleci/ && ./doBackendSDKTests.sh << parameters.cdi-version >> << parameters.fdi-version >>) - store_test_results: - path: test_report/report_node-<< parameters.fdi-version >>.xml + path: test-results/junit.xml - slack/status test-website: docker: diff --git a/.circleci/setupAndTestBackendSDKWithFreeCore.sh b/.circleci/setupAndTestBackendSDKWithFreeCore.sh index c06dcb261..2bd023ed4 100755 --- a/.circleci/setupAndTestBackendSDKWithFreeCore.sh +++ b/.circleci/setupAndTestBackendSDKWithFreeCore.sh @@ -115,9 +115,9 @@ export NODE_PORT=8081 export INSTALL_PATH=../supertokens-root export multi="spec=- mocha-junit-reporter=/dev/null" -mkdir test_report +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 --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 --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 # kill test-server kill $(lsof -t -i:$API_PORT)