【原创】Maven cobertura整合多个子项目下的单测覆盖率报告
今天在调试一个UT job的时候发现找不到cobertural报告文件,后来发现在Maven的自项目里找到了对应的代码覆盖率报告,但都是是分散在每个子项目下面的,看起来很不方便。就在想是不是可以把这些报告都汇集到一起呢?结果还真是被我在stackoverflow里找到了。下面是原帖内容,我就一并粘过来吧:
The plugin has been updated since this question was asked (and last answered) to now enable aggregated reporting, via the aggregate
configuration property in the parent POM.
This produces the aggregated coverage report at target/site/cobertura/index.html
which will include all modules.
(Each module will also have it's own report produced, if that is of any use.)
Parent pom.xml
<modules><module>moduleA</module><module>moduleB</module><module>moduleC</module> <modules> <build><pluginManagement><plugins><plugin><groupId>org.codehaus.mojo</groupId><artifactId>cobertura-maven-plugin</artifactId><version>2.6</version><configuration><check/><formats><format>html</format><format>xml</format></formats><aggregate>true</aggregate></configuration></plugin>...</pluginManagement><plugins><plugin><groupId>org.codehaus.mojo</groupId><artifactId>cobertura-maven-plugin</artifactId></plugin></plugins> ... </build>
转载于:https://www.cnblogs.com/testermark/p/4322018.html
【原创】Maven cobertura整合多个子项目下的单测覆盖率报告相关推荐
- SSM 框架 Maven项目整合实例
2019独角兽企业重金招聘Python工程师标准>>> SSM 框架 Maven项目整合实例1: 转载学习:https://blog.csdn.net/Peng_Hong_fu/ar ...
- [原创]Maven实战-读书笔记
Maven读书笔记 Maven读书笔记 依赖 快捷键:Alt+Shift+X M 使用ArcheType来创建Maven项目骨架: Maven中坐标的定义 依赖范围 依赖传递 依赖调解 可选依赖 ...
- Spring+SpringMVC+MyBatis+Maven框架整合
本文记录了Spring+SpringMVC+MyBatis+Maven框架整合的记录,主要记录以下几点 一.Maven需要引入的jar包 二.Spring与SpringMVC的配置分离 三.Sp ...
- Maven+SSM整合
Maven+SSM整合 1.工程体系图 2.创建mavenWeb项目,添加pom.xml文件依赖以及插件 <properties><project.build.sourceEncod ...
- SonarQube 8.3.x中的Maven项目的测试覆盖率报告
几年前,我写了一篇博客文章,介绍如何在SonarQube中生成测试报告,该报告独立于单元测试和集成测试的测试报告中. 从SonarQube 6.2开始,测试报告不再在这些类别中分开(请参阅SonarQ ...
- springboot 整合 unipush 个推 实现cid单推、批量推
springboot 整合 unipush 个推 实现cid单推.批量推 unipush介绍 开通配置 uniapp获取cid Springboot集成 pom文件引入相关jar包 yml配置文件配置 ...
- 基于Jacoco+Maven+Jenkins配置的单元测试覆盖率报告实践
最近,系统重构,要求对底层基础服务加入单元测试用例,而我被安排产出单元测试覆盖率报告. 第一版比较简单,只是一个简单的测试报告,并无具体覆盖率 1. 针对maven项目,pom配置 <repor ...
- SonarQube中Maven项目的测试覆盖率报告
此文章描述了如果单元测试和集成测试分别运行,如何为Maven构建生成测试报告. SonarQube将所有测试报告合并为一份涵盖整体的测试报告.因此,如果您在Maven项目中将单元测试(由Maven S ...
- Maven项目整合讲义(Eclipse版)
1. Maven概述 1.1. Maven是什么 Maven是一个由Apache基金会维护的项目构建工具. 1.2. 项目构建是什么 我们将项目的代码从源代码到具体程序文件的过程称为代码 ...
最新文章
- 09Abstract Factory(抽象工厂)模式
- mysql 语句除法_SQL的查询语句(除法)
- 史上最简单的SpringCloud教程 | 第十篇: 高可用的服务注册中心
- webpack 阅读笔记
- Mac升级到Yosemite后默认的php版本不支持imagetfftext函数问题解决
- sublime默认html,Sublime Text默认HTML评论
- python threading模块中的timer_threading中定时器Timer方法
- 英语流利说 第32天
- 用 iBiu 3 秒构建出大型 Vue 项目架子
- 36 万美元套利!3 步骤揭秘黑客 DeFi 闪电贷全过程
- 这本Python书被封年度神作!程序员:比女友强太多!
- 5G冲击下,软件测试行业面临的新挑战和机遇
- R语言利器之ddply
- python菜鸟教程python基础教程
- Android Studio开发引入Speex
- 怎样运用云服务器搭建传奇世界联网手游教程,linux系统部署游戏详细教程
- topK问题分析与实现
- 【秋招纪实录】一篇特别正经的【基恩士】求职经验分享
- Docker容器获取局域网ip(使用macvlan)
- 引力财经直播室Java 简介