Test ManagementAutomationCI/CD Platforms
CircleCI
Set up TestKase test reporting in your CircleCI workflows.
CircleCI
CircleCI
Setup Steps
- Go to your CircleCI project → Project Settings → Environment Variables. Add
TESTKASE_PAT. - Add the reporting step to your
.circleci/config.yml. - Update the CLI flags to match your project.
- Commit and push to trigger.
Pipeline Template
version: 2.1
jobs:
test-and-report:
docker:
- image: cimg/node:20.0
steps:
- checkout
- run:
name: Install dependencies
command: npm ci
- run:
name: Run tests
command: npm test -- --reporter=junit --outputFile=test-results/junit.xml
when: always
- store_test_results:
path: test-results
- run:
name: Report to TestKase
command: |
npx @testkase/reporter report \
--token $TESTKASE_PAT \
--project-id PRJ-1 \
--org-id 1173 \
--cycle-id TCYCLE-5 \
--format junit \
--results-file test-results/junit.xml \
--build-id "$CIRCLE_BUILD_NUM"
when: always
workflows:
test:
jobs:
- test-and-reportnpm test -- --reporter=junit --outputFile=… is a placeholder, not a real command for most runners.
Replace it with the command that produces your framework's results file — e.g.
pytest --junitxml=test-results/junit.xml, npx playwright test, or mvn test — and set --format
to match. See the Test Frameworks guides for the
exact command and format per framework.
--cycle-id is optional. If not provided, results are reported to TCYCLE-1 — the master test cycle for the project.
