I have an open source project on GitHub and I’ve configured SonarCloud to analyse it. I’m running the tests on my computer to generate the XML coverage report and I’m then running sonar-scanner.
The scanner appears to be happy to import the report:
<snip> INFO: Python test coverage INFO: Parsing report '/home/philip/Documents/GitHub/sd-webhook-framework/coverage.xml' INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=587ms INFO: Sensor PythonXUnitSensor [python] INFO: Sensor PythonXUnitSensor [python] (done) | time=226ms INFO: Sensor JaCoCo XML Report Importer [jacoco] INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=26ms <snip>
but SonarCloud is showing 0.0% coverage (even though the tests show 100% coverage), suggesting that the coverage report is not being processed correctly.
What have I misunderstood/missed out?