- ALM used: GitHub
- CI system used: Github Actions
- Scanner command used: Automatic Analysis on PR
- Languages of the repository: Python
- Only if the SonarCloud project is public, the URL
- Error observed:
- I’ve seen a few posts like this so apologies for adding another to the pile; I wasn’t able to get things working following along. My
coverage.xml
is being created during CI and pushed back to the branch. The file is being created and added as expected,Coverage XML written to file tests/_coverage/coverage.xml
, but SonarCloud doesnt seem to find it. I’ve specified the path in the.sonarcloud.properties
file withsonar.python.coverage.reportPaths=**/tests/_coverage/*.xml
. I’ve tried a few combinations
- I’ve seen a few posts like this so apologies for adding another to the pile; I wasn’t able to get things working following along. My
Full .sonarcloud.properties
sonar.projectKey=Snayff_notquiteparadise
sonar.organization=snayff
# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=notquiteparadise
#sonar.projectVersion=1.0
# Path is relative to the .sonarcloud.properties file. Replace "\" by "/" on Windows.
sonar.inclusions=**/scripts/**
sonar.exclusions=**/docs/**,**/logs/**,.mypy_cache/**,.github/**,assets/**
sonar.test.inclusions=**/tests/**
sonar.python.coverage.reportPaths=**/tests/_coverage/*.xml
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
# other
sonar.showProfiling=true
sonar.verbose=true