JaCoCo和Maven的集成方式,在开发者测试阶段自动生成覆盖率报告
2011-07-17 13:47
567 查看
<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>
相关文章推荐
- JaCoCo+Maven+Jenkins自动执行单元测试并生成代码覆盖率报告
- Jacoco生成java覆盖率报告的两种方式
- 在jenkins和sonar中集成jacoco(二)--在jenkins中生成jacoco覆盖率报告
- Java开发流程自动化(svn+maven+nexus+jenkins) --自动编译,持续集成,测试,打包,发布/部署
- maven与jacoco插件配置单元测试覆盖率
- android-junit-report工具实现android下junit框架测试自动生成报告
- sonar 集成代码测试覆盖率插件jacoco
- 使用Maven自动打包配置文件生成开发环境,测试环境,生产环境
- testng测试 并生成覆盖率报告
- jenkins+maven+junit构建自动化测试,整合junit xml生成直观的测试报告[留存]
- mybatis-generator 代码自动生成工具(maven方式)
- ant+jmeter 自动生成测试报告
- Java开发流程自动化(svn+maven+nexus+jenkins) --自动编译,持续集成,测试,打包,发布/部署
- Maven+TravisCI持续集成和Coveralls测试覆盖率检测
- 生成代码覆盖率报告插件 apply plugin: 'jacoco'
- Eclipse+Maven+TestNg+ReportNg 生成测试报告
- idea 自动生成测试代码junit设置到maven标准测试目录
- Mybatis 自动生成代码工具(maven方式)
- JMeter非GUI模式自动生成测试报告
- JMeter:Dashboard Report自动生成测试报告的巧用和避坑