Added coverage tracking

This commit is contained in:
Harrison Deng 2025-01-09 15:54:22 +00:00
parent 2c412c5526
commit 42bcfcf61d
2 changed files with 3 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -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)]
} }
} }

View File

@ -4,4 +4,5 @@ pytest
pytest-asyncio pytest-asyncio
build build
twine twine
setuptools_scm setuptools_scm
pytest-cov