Updated code coverage to only report on source code

This commit is contained in:
Harrison Deng 2025-01-09 16:51:08 +00:00
parent 463e320386
commit 7bd28db6d4

2
Jenkinsfile vendored
View File

@ -14,7 +14,7 @@ pipeline {
}
stage("unit tests") {
steps {
sh returnStatus: true, script: "python -m pytest --junitxml=test_results.xml --cov=. --cov-report xml:coverage.xml"
sh returnStatus: true, script: "python -m pytest --junitxml=test_results.xml --cov=src --cov-report xml:coverage.xml"
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'test_results.xml', stopProcessingIfError: true)]
recordCoverage(tools: [[parser: 'COBERTURA', pattern: 'coverage.xml']])
}