[英]SonarQube: quality gate coverage on new code
The scenario below is not working for me. 下面的情况不适用于我。
I performed two analysis t1 and t2 as described below 我执行了如下的两个分析t1和t2
t1: Code with 13.6% coverage is analysed and sent to SonarQube server. t1:分析覆盖率为13.6%的代码并将其发送到SonarQube服务器。 Here I am using /d:sonar.projectDate=2016-11-24 as parameter to the scanner.
在这里,我使用/d:sonar.projectDate=2016-11-24作为扫描仪的参数。 It is 61 lines of code in t1.
t1中有61行代码。
t2: Removed the date parameter. t2:删除了date参数。 Added new code without coverage and also added some duplicated lines.
添加了没有覆盖范围的新代码,还添加了一些重复的行。 It is 158 lines of code in t2.
t2中有158行代码。 Coverage dropped to 3.8%.
覆盖率下降到3.8%。 Meaning that lots of code was introduced without the expected coverage.
这意味着在没有预期的覆盖范围的情况下引入了许多代码。
Questions: 问题:
Context where it happens: 发生情况的上下文:
sonar.projectDate
parameter is used to rewrite the history of a project to have an evolution of issues created at different point of times sonar.projectDate
参数用于重写项目的历史记录,以解决在不同时间点产生的问题的演变
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.