JaCoCo和Maven的集成方式,在开发者测试阶段自动生成覆盖率报告
org.jacoco jacoco-maven-plugin 0.5.3.201107060350 JaCoCo Agent test-compile p
·
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.5.3.201107060350</version>
<executions>
<execution>
<id>JaCoCo Agent</id>
<phase>test-compile</phase>
<goals>
<goal>
prepare-agent
</goal>
</goals>
</execution>
<execution>
<id>JaCoCo Report</id>
<phase>test</phase>
<goals>
<goal>
report
</goal>
</goals>
</execution>
</executions>
</plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.5.3.201107060350</version>
<executions>
<execution>
<id>JaCoCo Agent</id>
<phase>test-compile</phase>
<goals>
<goal>
prepare-agent
</goal>
</goals>
</execution>
<execution>
<id>JaCoCo Report</id>
<phase>test</phase>
<goals>
<goal>
report
</goal>
</goals>
</execution>
</executions>
</plugin>
更多推荐
所有评论(0)