Updated code coverage to only report on source code
This commit is contained in:
parent
463e320386
commit
7bd28db6d4
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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']])
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user