2
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<argLine>-noverify</argLine> 
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>

上述插件用于生成 cobertura 报告。每次构建项目时,cobertura 覆盖率都会波动。虽然调试控制将进入每一行。但是覆盖率报告是不恰当的。

4

0 回答 0