code coverage shows zero percentage - SonarQube

那年仲夏 提交于 2021-01-07 03:59:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!