From 9d4e564e0e47bf878ea5a3d83562178af73aa0f3 Mon Sep 17 00:00:00 2001 From: Czar Echavez Date: Thu, 30 Nov 2023 18:32:03 +0000 Subject: [PATCH] #2084: upload reports --- .azure/azure-ci-build-pipeline.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.azure/azure-ci-build-pipeline.yaml b/.azure/azure-ci-build-pipeline.yaml index 6951e350..0b02626c 100644 --- a/.azure/azure-ci-build-pipeline.yaml +++ b/.azure/azure-ci-build-pipeline.yaml @@ -86,5 +86,14 @@ stages: displayName: 'Perform PrimAITE Setup' - script: | - pytest --cov=src --cov-report=html:coverage_report --cov-fail-under=80 + pytest --cov=src --cov-report=html:coverage_report --cov-report=xml --cov-fail-under=80 displayName: 'Run tests and code coverage' + + - task: PublishCodeCoverageResults@1 + displayName: 'Publish coverage report' + condition: succeededOrFailed() + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: 'coverage.xml' + reportDirectory: 'coverage_report' + failIfCoverageEmpty: true