Added coverage tracking
This commit is contained in:
parent
2c412c5526
commit
42bcfcf61d
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -14,7 +14,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage("unit tests") {
|
stage("unit tests") {
|
||||||
steps {
|
steps {
|
||||||
sh returnStatus: true, script: "python -m pytest --junitxml=test_results.xml"
|
sh returnStatus: true, script: "python -m pytest --junitxml=test_results.xml --cov=. --cov-report xml:coverage.xml"
|
||||||
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'test_results.xml', stopProcessingIfError: true)]
|
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'test_results.xml', stopProcessingIfError: true)]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,4 +4,5 @@ pytest
|
|||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
build
|
build
|
||||||
twine
|
twine
|
||||||
setuptools_scm
|
setuptools_scm
|
||||||
|
pytest-cov
|
Loading…
x
Reference in New Issue
Block a user