aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-10-20 21:14:12 +0200
committerGravatar GitHub <[email protected]>2019-10-20 21:14:12 +0200
commitf194df838c623d3c1b68809230f396a7241508b1 (patch)
treec4376bd37862d868fe100cababc731911d48fabd /azure-pipelines.yml
parentMerge pull request #528 from bendiller/antimalware-cog (diff)
parentMerge branch 'master' into unittest-migration (diff)
Merge pull request #517 from python-discord/unittest-migration
Migrating the test suite to the `unittest` framework
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml11
1 files changed, 7 insertions, 4 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index c22bac089..da3b06201 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -30,9 +30,12 @@ jobs:
- script: python -m flake8
displayName: 'Run linter'
- - script: BOT_API_KEY=foo BOT_TOKEN=bar WOLFRAM_API_KEY=baz python -m pytest --junitxml=junit.xml --cov=bot --cov-branch --cov-report=term --cov-report=xml tests
+ - script: BOT_API_KEY=foo BOT_TOKEN=bar WOLFRAM_API_KEY=baz coverage run -m xmlrunner
displayName: Run tests
+ - script: coverage report -m && coverage xml -o coverage.xml
+ displayName: Generate test coverage report
+
- task: PublishCodeCoverageResults@1
displayName: 'Publish Coverage Results'
condition: succeededOrFailed()
@@ -41,11 +44,11 @@ jobs:
summaryFileLocation: coverage.xml
- task: PublishTestResults@2
- displayName: 'Publish Test Results'
condition: succeededOrFailed()
+ displayName: 'Publish Test Results'
inputs:
- testResultsFiles: junit.xml
- testRunTitle: 'Bot Test results'
+ testResultsFiles: '**/TEST-*.xml'
+ testRunTitle: 'Bot Test Results'
- job: build
displayName: 'Build & Push Container'