如果我按如下方式设置我的<reporting>
部分pom
,我只会得到肯定的报告,而最糟糕的报告会失败,因为它找不到任何输入。
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.19.1</version>
</plugin>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.1.10</version>
<configuration>
<targetClasses>
<param>pricingengine.*</param>
</targetClasses>
<targetTests>
<param>pricingengine.*</param>
</targetTests>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
要获取pitest
报告的输入以便输出到站点报告,我需要先执行以下操作:
mvn compile test-compile org.pitest:pitest-maven:mutationCoverage
我是否必须在本节中将这些中的每一个设置为绑定到阶段<build>
的插件才能实现这一点?或者有没有我不知道的另一个插件的更简单的解决方案?executions
pre-site