aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 15470f9be..da3b06201 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -30,11 +30,11 @@ jobs:
- script: python -m flake8
displayName: 'Run linter'
- - script: BOT_API_KEY=foo BOT_TOKEN=bar WOLFRAM_API_KEY=baz coverage run -m unittest
+ - script: BOT_API_KEY=foo BOT_TOKEN=bar WOLFRAM_API_KEY=baz coverage run -m xmlrunner
displayName: Run tests
- - script: coverage xml -o coverage.xml
- displayName: Create test coverage report
+ - script: coverage report -m && coverage xml -o coverage.xml
+ displayName: Generate test coverage report
- task: PublishCodeCoverageResults@1
displayName: 'Publish Coverage Results'
@@ -43,6 +43,13 @@ jobs:
codeCoverageTool: Cobertura
summaryFileLocation: coverage.xml
+ - task: PublishTestResults@2
+ condition: succeededOrFailed()
+ displayName: 'Publish Test Results'
+ inputs:
+ testResultsFiles: '**/TEST-*.xml'
+ testRunTitle: 'Bot Test Results'
+
- job: build
displayName: 'Build & Push Container'
dependsOn: 'test'