aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml16
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'