TestKase Docs
AutomationCI/CD Platforms

CI/CD Platforms

Set up automated test reporting in your CI/CD pipelines with TestKase.

Overview

Integrate TestKase reporting into your CI/CD pipeline to automatically push test results after every build. Each platform guide provides a ready-to-use pipeline template with the @testkase/reporter CLI.

Supported Platforms

PlatformGuide
GitHub ActionsGitHub Actions Guide
GitLab CIGitLab CI Guide
JenkinsJenkins Guide
Azure DevOpsAzure DevOps Guide
CircleCICircleCI Guide

Common Pattern

Every CI/CD integration follows the same three-step pattern:

  1. Store secrets — Add TESTKASE_PAT as a CI/CD secret or environment variable. Never hardcode tokens in pipeline files.
  2. Run tests with continue-on-error — Your test step should not block the pipeline on failure. Use continue-on-error: true (GitHub Actions), allow_failure: true (GitLab CI), or equivalent.
  3. Run the reporter with always-execute — The reporting step must run regardless of test pass/fail. Use if: always() (GitHub Actions), when: always (GitLab CI), or post { always { } } (Jenkins).

Example Reporter Step

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 "$BUILD_NUMBER"

--cycle-id is optional. If not provided, results are reported to TCYCLE-1 — the master test cycle for the project.

Always include --build-id with your CI build number. This links each execution to a specific build, making it easy to trace results back to code changes.

Next Steps

  • Choose your platform guide above and follow the step-by-step instructions.
  • See Best Practices & FAQ for troubleshooting and optimization tips.
  • See CLI Reference for the full list of reporter flags.