我刚刚在我的maven项目中配置了PiTest,添加了构建插件‘org.piest:pitest maven:1.2.4’,但是当我运行mvn编译org.piest:pitest maven:mutationCoverage(mvn -X org.piest:pitest maven:maven)
[ERROR] Failed to execute goal org.pitest:pitest-maven:1.1.11:mutationCoverage(default-cli) on p
Exception in thread "main" org.pitest.help.PitHelpError: All tests did not pass without mutation whenSee http://pitest.org for more details.:49)
at org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:110)at org.pites
我使用Pitest在IntelliJ IDEA中进行突变测试(plugin:)。在运行所有测试用例之后,我在执行结束时得到了以下消息:
线程“主”中的org.pitest.help.PitHelpError异常:在计算行覆盖时,所有的测试都不是通过没有变异的。欲了解更多细节,请参见org.pitest.coverage.execute.DefaultCoverageGenerator.verifyBuildSuitableForMutationTesting:115) at org.pitest.mutationtest