Azure Pipelines Integration
In order to integrate Testim with Azure pipelines, you need to add these lines to your YAML file:
Copy
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install -g @testim/testim-cli
testim --label "<LABEL>" §§§LINEBREAK§§§
--token "<TOKEN>" §§§LINEBREAK§§§
--project "<PROJECT ID>" §§§LINEBREAK§§§
--grid "<Your grid name>" §§§LINEBREAK§§§
--report-file testim-tests-report.xml
displayName: 'npm install testim-cli and run tests'
- task: PublishTestResults@2
displayName: 'publish testim test results'
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/testim-tests-report.xml'
Note: For the grid name, read here how to set up your grid.