From 294f57c292dfbbdacc95b91f927c9fa9a99a0862 Mon Sep 17 00:00:00 2001 From: Czar Echavez Date: Fri, 1 Dec 2023 15:08:42 +0000 Subject: [PATCH] #2084: find paths with wildcard --- .azure/azure-ci-build-pipeline.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.azure/azure-ci-build-pipeline.yaml b/.azure/azure-ci-build-pipeline.yaml index 147b8c14..4724cc87 100644 --- a/.azure/azure-ci-build-pipeline.yaml +++ b/.azure/azure-ci-build-pipeline.yaml @@ -98,7 +98,7 @@ stages: displayName: 'Perform PrimAITE Setup' - script: | - pytest -v tests/ --cov=src/ -o junit_family=xunit2 --junitxml=junit/test-results.xml --cov-report xml:coverage.xml --cov-report html + pytest -v tests/ --cov=src/ -o junit_family=xunit2 --junitxml=junit/test-results.xml --cov-report xml:coverage.xml --cov-report html --cov-report term --cov-fail-under=80 displayName: 'Run tests and code coverage' - task: PublishTestResults@2 @@ -112,8 +112,8 @@ stages: displayName: 'Publish coverage report' inputs: codeCoverageTool: Cobertura - summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage.xml - pathToSources: $(System.DefaultWorkingDirectory)/ - reportDirectory: $(System.DefaultWorkingDirectory)/htmlcov - additionalCodeCoverageFiles: $(System.DefaultWorkingDirectory)/htmlcov/*.* + summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' + pathToSources: '$(System.DefaultWorkingDirectory)/src' + reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' + additionalCodeCoverageFiles: '$(System.DefaultWorkingDirectory)/**/htmlcov/*.*' failIfCoverageEmpty: true