Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

code coverage shows zero percentage - SonarQube

We are using SonarQube 6.4

Code coverage for both front end code(JavaScript) & back end code(java) shows 0%

enter image description here

enter image description here

Developers claim they have unit test cases for every function or class they write

This application has database layer

What does code coverage 0% mean?

like image 461
overexchange Avatar asked Nov 04 '25 08:11

overexchange


1 Answers

As stated in the docs sonarqube does not run tests, it simply imports report generated by other tools to display them along the other analysis.

So my guess is that you have not configured your CI chain to generate test reports to be shown in sonarqube.

like image 117
Alienpenguin Avatar answered Nov 06 '25 04:11

Alienpenguin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!