Sonarqube python coverage 0%

I use sonarqube Enterprise Edition Version 8.9.2, here is what I used for sonar python project,
it works for one project but it doesn’t for the project below.
the coverage.xml contain the info below, the line-rate is “0.02662”, not sure why the sonar coverage still displayed as 0?

<?xml version="1.0" ?>
<coverage version="6.3.2" timestamp="1652463614291" lines-valid="2630" lines-covered="70" line-rate="0.02662" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">

docker run --rm -v /home/myhome/.sonar-cache/projectName:/home/myhome/.sonar-cache/projectName -v/projDir:/projDir -Dsonar.pullrequest.branch=mybranch -Dsonar.pullrequest.key=100 -Dsonar.projectKey=projecdtName[] -Dsonar.login=**** -Dsonar.tests=/projDir/test -Dsonar.sources=/projDir/src -Dsonar.projectBaseDir=/projDir/src -Dsonar.language=py -Dsonar.python.coverage.reportPaths=/projDir/coverage.xml -Dsonar.python.xunit.reportPath=/projDir/testreport.xml -Dsonar.coverage.dtdVerification=false


I guess you’re expecting to see 2%?

The thing is, SonarQube doesn’t take the overall coverage % straight from your report; it makes its own calculation.

This somewhat dusty (but still basically accurate) blog should help.