现在的位置: 首页 > 综合 > 正文

JaCoCo和Maven的集成方式,在开发者测试阶段自动生成覆盖率报告

2013年08月05日 ⁄ 综合 ⁄ 共 499字 ⁄ 字号 评论关闭

    <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>

抱歉!评论已关闭.