diff options
author | 2019-09-20 20:06:19 -0700 | |
---|---|---|
committer | 2019-09-20 20:29:38 -0700 | |
commit | 28856e1f13382f8a453daa111f784733d9e785ca (patch) | |
tree | 128fd6f4553f6d6b89de8ba50fe4151f7fb11f90 /azure-pipelines.yml | |
parent | CI: minor refactoring (diff) |
CI: publish XML coverage report
* Show missing line numbers in report
Diffstat (limited to '')
-rw-r--r-- | azure-pipelines.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 64e26661..b2aa7141 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -53,8 +53,8 @@ jobs: DATABASE_URL: postgres://pysite:pysite@localhost/pysite displayName: 'Run Tests' - - script: coverage report - displayName: 'Show Coverage Results' + - script: coverage report -m && coverage xml + displayName: 'Generate Coverage Reports' - task: PublishTestResults@2 condition: succeededOrFailed() @@ -63,6 +63,13 @@ jobs: testResultsFiles: '**/TEST-*.xml' testRunTitle: 'Site Test Results' + - task: PublishCodeCoverageResults@1 + displayName: 'Publish Coverage Results' + condition: succeededOrFailed() + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: '**/coverage.xml' + - job: build displayName: 'Build & Push Container' dependsOn: test |