# In SonarQube 8.2, code coverage is always showing 0%

**URL:** <https://community.sonarsource.com/t/in-sonarqube-8-2-code-coverage-is-always-showing-0/21666>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [March 16, 2020, 11:39am UTC](https://community.sonarsource.com/t/in-sonarqube-8-2-code-coverage-is-always-showing-0/21666 "2020-03-16T11:39:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mobile\_fullerton](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mobile\_fullerton](https://community.sonarsource.com/u/mobile_fullerton)\
**Post date:** [March 16, 2020, 11:39am UTC](https://community.sonarsource.com/t/in-sonarqube-8-2-code-coverage-is-always-showing-0/21666/1 "2020-03-16T11:39:02Z")

</div>

**SonarQube scanner version : 2.8**  
**SonarQube version : 8.2**  
**Jacoco plugin version : 0.1.4**  
**Android Syudio version : 3.5.3**  
**Gradle version : 4.6**

I have run an application on **SonarQube 7.7** and was able to see the Code coverage as 48% on the dashboard.

I am trying to run this android application on **SonarQube 8.2**. I have included test cases for almost all the classes and are successful. However code coverage on SonarQube dashboard is always 0 %.

Please suggest the changes need to be done.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [March 16, 2020, 1:55pm UTC](https://community.sonarsource.com/t/in-sonarqube-8-2-code-coverage-is-always-showing-0/21666/2 "2020-03-16T13:55:01Z")

</div>

Hi,

Welcome to the community!

Are you generating a test coverage report and feeding that into analysis?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![mobile\_fullerton](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mobile\_fullerton](https://community.sonarsource.com/u/mobile_fullerton)\
**Post date:** [March 17, 2020, 6:16am UTC](https://community.sonarsource.com/t/in-sonarqube-8-2-code-coverage-is-always-showing-0/21666/3 "2020-03-17T06:16:03Z")

</div>

Hi,  
Yes, test coverage report is generated.  
Please find screenshot below.

 ![sonar_reports](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/b/b98b562b458c8b89853a7a31a66c8cf7c91d3021.png)

Suggest if we are doing it the right way.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [March 17, 2020, 7:14pm UTC](https://community.sonarsource.com/t/in-sonarqube-8-2-code-coverage-is-always-showing-0/21666/4 "2020-03-17T19:14:51Z")

</div>

Hi,

This guide might help: [[Coverage & Test Data] Importing JaCoCo coverage report in XML format](https://community.sonarsource.com/t/coverage-test-data-importing-jacoco-coverage-report-in-xml-format/12151)

&nbsp;  
Ann
