#2084: more debugging

This commit is contained in:
Czar Echavez
2023-12-02 14:17:34 +00:00
parent 47287ad1eb
commit 2123fbb8f4

View File

@@ -104,7 +104,9 @@ stages:
version: '2.1.x'
- script: |
pytest -v --cov=$(System.DefaultWorkingDirectory)/src/ -o junit_family=xunit2 --junitxml=junit/test-results.xml --cov-report xml:$(System.DefaultWorkingDirectory)/coverage.xml --cov-report html:$(System.DefaultWorkingDirectory)/htmlcov --cov-report term
coverage run -m pytest tests/unit_tests
coverage xml -o coverage.xml -i
coverage html -d htmlcov -i
displayName: 'Run tests and code coverage'
- task: PublishTestResults@2
@@ -117,6 +119,12 @@ stages:
- publish: $(System.DefaultWorkingDirectory)/htmlcov/
artifact: coverage_report
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
# - task: PublishCodeCoverageResults@2
# displayName: 'Publish coverage report'
# inputs: