From 7bd28db6d4a0f0f068c43d06b87a30870bb8a9f3 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 9 Jan 2025 16:51:08 +0000 Subject: [PATCH] Updated code coverage to only report on source code --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2f5fe0d..105c8bc 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 --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']]) }