Coverage shows zero for Python using SonarScanner in Bamboo Builds

sed may not be relevant in your case anyway. In my issue here the problem was not that SonarQube couldn’t find the coverage.xml file. It was that it couldn’t interpret it. This was because the tests were being run against the installed version of my code under site-packages rather than against my actual checked-out source code. So the paths in coverage.xml didn’t match the source code paths. Your problem seems to be it can’t find the coverage.xml file in the first place.

1 Like