代码覆盖率显示零百分比 - SonarQube [英] code coverage shows zero percentage - SonarQube
问题描述
我们正在使用 SonarQube 6.4
We are using SonarQube 6.4
前端代码 (JavaScript) & 的代码覆盖率后端代码(java) 显示 0%
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
代码覆盖率 0% 是什么意思?
What does code coverage 0% mean?
推荐答案
如 docs 中所述 sonarqube 不运行测试,它只是导入其他工具生成的报告,以便在其他分析中显示它们.
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.
所以我的猜测是你没有配置你的 CI 链来生成要在 sonarqube 中显示的测试报告.
So my guess is that you have not configured your CI chain to generate test reports to be shown in sonarqube.
这篇关于代码覆盖率显示零百分比 - SonarQube的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!