diff --git a/.circleci/setupAndTestBackendSDKWithFreeCore.sh b/.circleci/setupAndTestBackendSDKWithFreeCore.sh index 126d04334..c1d216c46 100755 --- a/.circleci/setupAndTestBackendSDKWithFreeCore.sh +++ b/.circleci/setupAndTestBackendSDKWithFreeCore.sh @@ -115,9 +115,10 @@ 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" TEST_FILES=$(circleci tests glob "test/**/*.test.js") -multi="spec=- mocha-junit-reporter=/dev/null" 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 --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) diff --git a/.circleci/setupAndTestWithAuthReact.sh b/.circleci/setupAndTestWithAuthReact.sh index 2514c8aee..3d2d31d8e 100755 --- a/.circleci/setupAndTestWithAuthReact.sh +++ b/.circleci/setupAndTestWithAuthReact.sh @@ -159,8 +159,13 @@ done sleep 2 # Because the server is responding does not mean the app is ready. Let's wait another 2secs to make sure the app is up. echo "Start mocha testing" +export multi="spec=- mocha-junit-reporter=/dev/null" +export TEST_MODE=testing +export APP_SERVER=$apiPort +export SCREENSHOT_ROOT=~/test_report/screenshots + export SPEC_FILES=$(circleci tests glob 'test/end-to-end/**/*.test.js' 'test/unit/**/*.test.js') -echo $SPEC_FILES | SCREENSHOT_ROOT=~/test_report/screenshots APP_SERVER=$apiPort TEST_MODE=testing multi="spec=- mocha-junit-reporter=/dev/null" circleci tests run --command="xargs npx mocha mocha --reporter mocha-multi --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config" --verbose --split-by=timings +echo $SPEC_FILES | circleci tests run --command="xargs npx mocha mocha --reporter mocha-multi --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config" --verbose --split-by=timings testPassed=$?; cp ../supertokens-root/logs/error.log ~/test_report/logs/core_error.log diff --git a/.circleci/setupAndTestWithFreeCore.sh b/.circleci/setupAndTestWithFreeCore.sh index 41c23bd1c..ff7ed31b8 100755 --- a/.circleci/setupAndTestWithFreeCore.sh +++ b/.circleci/setupAndTestWithFreeCore.sh @@ -94,6 +94,7 @@ 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" TEST_FILES=$(circleci tests glob "test/**/*.test.js") -multi="spec=- mocha-junit-reporter=/dev/null" echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --reporter mocha-multi --node-option no-experimental-fetch --timeout 40000 --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 --timeout 40000 --no-config" --verbose --split-by=timings diff --git a/.circleci/setupAndTestWithFrontend.sh b/.circleci/setupAndTestWithFrontend.sh index d3ab38055..bb73c38e3 100755 --- a/.circleci/setupAndTestWithFrontend.sh +++ b/.circleci/setupAndTestWithFrontend.sh @@ -98,8 +98,14 @@ npm i cd ../../ npm i -d +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" + TEST_FILES=$(circleci tests glob "test/*.test.js") -TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root multi="spec=- mocha-junit-reporter=/dev/null" echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha npx mocha --exit --reporter mocha-multi --no-config --require isomorphic-fetch --timeout 500000" --verbose --split-by=timings +echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha npx mocha --exit --reporter mocha-multi --no-config --require isomorphic-fetch --timeout 500000" --verbose --split-by=timings if [[ $? -ne 0 ]] then