diff --git a/Jenkinsfile b/Jenkinsfile index fb99348..76d5da5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ pipeline { } stage("unit tests") { 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)] } } diff --git a/requirements.txt b/requirements.txt index be304cd..951b648 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ pytest pytest-asyncio build twine -setuptools_scm \ No newline at end of file +setuptools_scm +pytest-cov \ No newline at end of file