#2084: publish coverage report

This commit is contained in:
Czar Echavez
2023-12-01 09:13:17 +00:00
parent c2f7d737f7
commit 3eb9a5ef1c

View File

@@ -100,3 +100,11 @@ stages:
- script: |
pytest --cov=src --cov-report=html --cov-report=xml --cov-fail-under=80
displayName: 'Run tests and code coverage'
- task: PublishCodeCoverageResults@1
displayName: 'Publish coverage report'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: './coverage.xml'
reportDirectory: './htmlcov'
failIfCoverageEmpty: true