我试图在clearcase和Sonar4.3.3中使用scm活动插件1.8,并在声纳中获得指责信息,但没有在仪表板中获得新代码的覆盖范围。
发布于 2015-07-23 06:39:56
应该将代码覆盖率工具添加到构建过程中。如果使用Maven,则可以添加:
<build>
...
<plugins>
...
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
<configuration>
<rules>
<rule>
<element>CLASS</element>
<excludes>
<exclude>*Test</exclude>
</excludes>
</rule>
</rules>
</configuration>
</plugin>
</plugins>
...
</build>
https://stackoverflow.com/questions/31588656
复制相似问题