试图集成Clover maven插件以获取我的项目的代码覆盖率。无法生成来自Clover Maven插件的代码覆盖率HTML报告
我建我的mvn clean install
项目后,目标文件夹看起来像下面
但我期待与HTML报告,代码覆盖率(这将给我们带包装明智,类明智的代码覆盖率views)
请问<generateHtml>true</generateHtml>
这行吗?如果是的话,我的配置有问题。
如何从Clover maven插件获取HTML报告?
下面是pom.xml的代码
<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<configuration>
<!-- <targetPercentage>80%</targetPercentage> -->
<generateHtml>true</generateHtml>
<generatePdf>true</generatePdf>
<generateXml>true</generateXml>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>instrument</goal>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<configuration>
<generateHtml>true</generateHtml>
<generatePdf>true</generatePdf>
<generateXml>true</generateXml>
</configuration>
</plugin>
</plugins>
</reporting>
您是否看到正在执行的测试用例作为'mvn clean install'命令的一部分? – Beginner
是的,测试用例被执行并且构建成功 –