diff options
| author | 2019-09-18 00:35:51 +1000 | |
|---|---|---|
| committer | 2019-09-18 00:35:51 +1000 | |
| commit | d2a036c83432203b401a5645141b76f907e726c4 (patch) | |
| tree | 8ef97d393f6635094e1fdb1e5415851ca285d7e4 /azure-pipelines.yml | |
| parent | Add tests for `bot.converters`. (#418) (diff) | |
| parent | Merge branch 'master' into add-pytest-cov (diff) | |
Add coverage reporting & JUnit XML to tests. (#432)
Add coverage reporting & JUnit XML to tests.
Co-authored-by: null <[email protected]>
Diffstat (limited to 'azure-pipelines.yml')
| -rw-r--r-- | azure-pipelines.yml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 19df35c11..242513ab4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -38,9 +38,23 @@ jobs: - script: python -m flake8 displayName: 'Run linter' - - script: BOT_TOKEN=foobar python -m pytest tests + - script: BOT_TOKEN=foobar python -m pytest --junitxml=junit.xml --cov=bot --cov-branch --cov-report=term --cov-report=xml tests displayName: Run tests + - task: PublishCodeCoverageResults@1 + displayName: 'Publish Coverage Results' + condition: succeededOrFailed() + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: coverage.xml + + - task: PublishTestResults@2 + displayName: 'Publish Test Results' + condition: succeededOrFailed() + inputs: + testResultsFiles: junit.xml + testRunTitle: 'Bot Test results' + - job: build displayName: 'Build Containers' dependsOn: 'test' |