Skip to content

Commit

Permalink
[INTERNAL] Azure Pipelines: Add test result and coverage publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Apr 26, 2019
1 parent ca62f26 commit 9dc4528
Show file tree
Hide file tree
Showing 4 changed files with 8,549 additions and 8,461 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ coverage
# nyc test coverage
.nyc_output

# CI (Azure Pipelines) xUnit test results
test-results.xml

# IDEs
.vscode/
*.~vsdx
Expand Down
15 changes: 14 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,17 @@ steps:
displayName: 'Install Node.js'

- script: npm install
- script: npm test
- script: npm run test-azure

- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '$(System.DefaultWorkingDirectory)/test-results.xml'

- task: PublishCodeCoverageResults@1
condition: succeededOrFailed()
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml'

Loading

0 comments on commit 9dc4528

Please sign in to comment.