#2084: publish coverage report
This commit is contained in:
@@ -100,3 +100,11 @@ stages:
|
|||||||
- script: |
|
- script: |
|
||||||
pytest --cov=src --cov-report=html --cov-report=xml --cov-fail-under=80
|
pytest --cov=src --cov-report=html --cov-report=xml --cov-fail-under=80
|
||||||
displayName: 'Run tests and code coverage'
|
displayName: 'Run tests and code coverage'
|
||||||
|
|
||||||
|
- task: PublishCodeCoverageResults@1
|
||||||
|
displayName: 'Publish coverage report'
|
||||||
|
inputs:
|
||||||
|
codeCoverageTool: Cobertura
|
||||||
|
summaryFileLocation: './coverage.xml'
|
||||||
|
reportDirectory: './htmlcov'
|
||||||
|
failIfCoverageEmpty: true
|
||||||
|
|||||||
Reference in New Issue
Block a user