aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-10-11 19:54:47 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2019-10-11 19:54:47 +0200
commit6d9cb1ad99d064d8810feb553c6b0463c74c92d4 (patch)
tree065acf7342c0c474cce894ee36ae26cc7d582134 /azure-pipelines.yml
parentAdd tests for tests.base (diff)
Change pipeline testrunner to xmlrunner
I have change the testrunner from `unittest` to `xmlrunner` in the Azure pipeline to be able to publish our test results on Azure. This is the same runner as `site` uses to generate XML reports. In addition, I've cleaned up some small mistakes in docstrings and `README.md`.
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'