From 2123fbb8f4476c5365a2bc2366f13db29be64672 Mon Sep 17 00:00:00 2001 From: Czar Echavez Date: Sat, 2 Dec 2023 14:17:34 +0000 Subject: [PATCH] #2084: more debugging --- .azure/azure-ci-build-pipeline.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.azure/azure-ci-build-pipeline.yaml b/.azure/azure-ci-build-pipeline.yaml index 5759e70e..36704ac0 100644 --- a/.azure/azure-ci-build-pipeline.yaml +++ b/.azure/azure-ci-build-pipeline.yaml @@ -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: