问题
We are using SonarQube 6.4
Code coverage for both front end code(JavaScript) & back end code(java) shows 0%
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?
回答1:
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.
来源:https://stackoverflow.com/questions/55275390/code-coverage-shows-zero-percentage-sonarqube