我正在尝试从命令行运行 maven 构建并排除 PITest 运行任何突变。目前报告失败,我们需要能够提供一个参数来忽略运行突变测试或忽略结果并继续构建
我已经运行了一些参数,例如mvn package -Dpit.report=true
或者mvn package -Dmaven.report.skip=true
这是我的 pom 中的 PITest 设置
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.1.10</version>
<configuration>
<timestampedReports>false</timestampedReports>
<mutationThreshold>95</mutationThreshold>
</configuration>
<executions>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>mutationCoverage</goal>
</goals>
</execution>
</executions>
</plugin>
问题是它仍在运行 PITest 并导致构建失败