AutomationCI/CD Platforms
Azure DevOps
Set up TestKase test reporting in your Azure DevOps pipelines.
Azure DevOps
Azure DevOps
Setup Steps
- Go to your Azure pipeline → Edit → Variables. Add
TESTKASE_PAT(secret). - Add the reporting step to your
azure-pipelines.yml. - Update the CLI flags to match your project.
- Save and run.
Pipeline Template
trigger:
branches:
include:
- main
- develop
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '20.x'
- script: npm ci
displayName: 'Install dependencies'
- script: npm test -- --reporter=junit --outputFile=test-results/junit.xml
displayName: 'Run tests'
continueOnError: true
- script: |
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.BuildNumber)"
displayName: 'Report to TestKase'
condition: always()--cycle-id is optional. If not provided, results are reported to TCYCLE-1 — the master test cycle for the project.