Skip to content

Commit 3da38be

Browse files
author
“jagnd1”
committed
fix sonarcloud coverage configuration
- remove jacoco coverage path (java-specific) - add sonar.coverage.xml.reportPaths for python coverage - clean up redundant configuration - this should fix 0% coverage display in badges
1 parent f2ee51a commit 3da38be

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

testing/sonar-project.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ sonar.tests=testing
1616
# exclude test files from source analysis
1717
sonar.exclusions=**/test_*.py,**/tests/**,**/*_test.py,**/test.py
1818

19-
# test execution and coverage
19+
# test execution and coverage
2020
sonar.python.coverage.reportPaths=testing/coverage.xml
2121
sonar.python.xunit.reportPath=testing/test-results.xml
22+
sonar.coverage.xml.reportPaths=testing/coverage.xml
2223

2324
# language and encoding
2425
sonar.sourceEncoding=UTF-8
@@ -27,6 +28,5 @@ sonar.python.version=3.13
2728
# additional exclusions for docker and config files
2829
sonar.exclusions+=**/Dockerfile*,**/docker-compose*.yml,**/.dockerignore,**/requirements.txt,**/healthcheck.sh,**/DEPLOYMENT.md,**/README.md,**/run.py,**/.venv/**,**/__pycache__/**
2930

30-
# coverage thresholds
31+
# coverage thresholds and exclusions
3132
sonar.coverage.exclusions=**/test_*.py,**/tests/**,**/*_test.py,**/test.py,**/__init__.py
32-
sonar.coverage.jacoco.xmlReportPaths=testing/coverage.xml

0 commit comments

Comments
 (0)