Added coverage report to the pipeline
@@ -69,6 +69,13 @@ jobs:
pytest --junitxml=junit/test-results.$(PYTHON_VERSION).xml --cov-config=.coveragerc --cov --cov-report=xml --cov-report=html
displayName: Pytest
+ - task: PublishCodeCoverageResults@1
+ displayName: 'Publish Test Coverage'
+ inputs:
+ codeCoverageTool: Cobertura
+ summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
+ reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
+
- task: PublishTestResults@2
displayName: 'Publish Test Results **/test-results.$(PYTHON_VERSION).xml'
inputs:
