【发布时间】:2018-02-23 06:04:29
【问题描述】:
我的 pom 中有一个 jacoco 插件来获得 junit 测试覆盖率,我正在从不同的服务器转储另一个报告。无论 maven 生命周期如何,如何合并这 2 个 jacoco 覆盖率报告(.exec 文件)。
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.6.201602180812</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${project.build.directory}</destFile>
</configuration>
</execution>
</executions>
</plugin>
【问题讨论】:
标签: maven merge code-coverage jacoco jacoco-maven-plugin