#2084: find paths with wildcard

This commit is contained in:
Czar Echavez
2023-12-01 15:08:42 +00:00
parent d6fedf0079
commit 294f57c292

View File

@@ -98,7 +98,7 @@ stages:
displayName: 'Perform PrimAITE Setup' displayName: 'Perform PrimAITE Setup'
- script: | - 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' displayName: 'Run tests and code coverage'
- task: PublishTestResults@2 - task: PublishTestResults@2
@@ -112,8 +112,8 @@ stages:
displayName: 'Publish coverage report' displayName: 'Publish coverage report'
inputs: inputs:
codeCoverageTool: Cobertura codeCoverageTool: Cobertura
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage.xml summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
pathToSources: $(System.DefaultWorkingDirectory)/ pathToSources: '$(System.DefaultWorkingDirectory)/src'
reportDirectory: $(System.DefaultWorkingDirectory)/htmlcov reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
additionalCodeCoverageFiles: $(System.DefaultWorkingDirectory)/htmlcov/*.* additionalCodeCoverageFiles: '$(System.DefaultWorkingDirectory)/**/htmlcov/*.*'
failIfCoverageEmpty: true failIfCoverageEmpty: true