Skip to content

Commit

Permalink
Add fixes to properly store the test results through junit
Browse files Browse the repository at this point in the history
  • Loading branch information
deepjyoti30-st committed Dec 3, 2024
1 parent 978615f commit fa2adcc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .circleci/config_continue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
parameters:
cdi-version:
type: string
fdi-version:
type: string
environment:
MOCHA_FILE: ~/test_report/report_node-<< parameters.fdi-version >>.xml
parallelism: 4
steps:
- checkout
Expand All @@ -56,6 +60,8 @@ jobs:
- run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2
- run: update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk-15.0.1/bin/javac" 2
- run: (cd .circleci/ && ./doUnitTests.sh << parameters.cdi-version >>)
- store_test_results:
path: ~/test_report/report_node-<< parameters.fdi-version >>.xml
- slack/status
test-backend-sdk-testing:
docker:
Expand Down Expand Up @@ -173,6 +179,7 @@ workflows:
matrix:
parameters:
cdi-version: placeholder
fdi-version: placeholder
- test-backend-sdk-testing:
requires:
- test-dev-tag-as-not-passed
Expand Down
3 changes: 2 additions & 1 deletion .circleci/setupAndTestBackendSDKWithFreeCore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ git clone [email protected]:supertokens/backend-sdk-testing.git
cd backend-sdk-testing
git checkout $frontendDriverVersion
npm install
npm i mocha-multi
npm run build

export API_PORT=$API_PORT
Expand All @@ -116,7 +117,7 @@ export NODE_PORT=8081
export INSTALL_PATH=../supertokens-root

TEST_FILES=$(circleci tests glob "test/**/*.test.js")
echo "$TEST_FILES" | circleci tests run --command="xargs npx mocha mocha --node-option no-experimental-fetch -r test/fetch-polyfill.mjs --timeout 500000 --no-config" --verbose --split-by=timings
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

# kill test-server
kill $(lsof -t -i:$API_PORT)

0 comments on commit fa2adcc

Please sign in to comment.