# Sonar Python not showing test coverage

**URL:** <https://community.sonarsource.com/t/sonar-python-not-showing-test-coverage/9734>\
**Category:** SonarQube Server / Community Build\
**Tags:** tests, sonarqube-ide, sonarqube-cloud\
**Created:** [May 14, 2019, 9:27am UTC](https://community.sonarsource.com/t/sonar-python-not-showing-test-coverage/9734 "2019-05-14T09:27:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juliana](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/juliana/32/3668_2.png) [@Juliana](https://community.sonarsource.com/u/Juliana)\
**Post date:** [May 14, 2019, 9:27am UTC](https://community.sonarsource.com/t/sonar-python-not-showing-test-coverage/9734/1 "2019-05-14T09:27:32Z")

</div>

Hi Sonar community,

We have just started integrating Sonar as our primary code analysis tool.  
Unfortunately we are unable to measure code coverage using it.  
We use Jenkins as our CI tool which in turn we use to trigger Sonarscanner which works flawlessly.  
With Circle CI we used to run  
coverage run -m unittest discover src/python/tests  
and pass coverage.xml  
Unfortunately we are unable to get it working with sonar, which still shows 0% coverage.

Any and all help is greatly appreciated 🙂

---

<div class="post-metadata">

**Author:** ![Juliana](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/juliana/32/3668_2.png) [@Juliana](https://community.sonarsource.com/u/Juliana)\
**Post date:** [May 15, 2019, 10:25am UTC](https://community.sonarsource.com/t/sonar-python-not-showing-test-coverage/9734/2 "2019-05-15T10:25:18Z")

</div>

Update:

Even the PR branch shows NO code. So all tests(sonar tests not unit tests) are passing.  
Using Jenkins as CI tool.  
We just bought SonarQube and unfortunately nothing is working. ☹

Update: PR analysis is running but all images on github are broken

---

<div class="post-metadata">

**Author:** ![Fabrice\_Bellingard](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/fabrice_bellingard/32/39_2.png) [@Fabrice\_Bellingard](https://community.sonarsource.com/u/Fabrice_Bellingard)\
**Post date:** [May 22, 2019, 4:09pm UTC](https://community.sonarsource.com/t/sonar-python-not-showing-test-coverage/9734/3 "2019-05-22T16:09:42Z")

</div>

I guess looking at this thread can help you: [No Python code coverage even though report is being processed](https://community.sonarsource.com/t/no-python-code-coverage-even-though-report-is-being-processed/9197)
