我正在尝试将 PIT Mutation 测试与 maven 一起用于 apache 常见数学测试。
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>0.29</version>
<configuration>
<targetClasses>
<param>org.*</param>
</targetClasses>
<targetTests>
<param>org.*</param>
</targetTests>
</configuration>
</plugin>
我将此添加到我的pom.xml和mvn org.pitest:pitest-maven:mutationCoverage
. 我可以运行它,但索引文件显示 Line Coverage 和 Mutation Coverage 为 0%。我想我没有正确给出参数。此外,我需要改变 apache-common-math 的一项测试,例如 LUDecomposition。