在PITclipse中,我在测试后收到此错误:
Exception in thread "main" org.pitest.help.PitHelpError: All tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite.
See http://pitest.org for more details.
at org.pitest.coverage.execute.DefaultCoverageGenerator.verifyBuildSuitableForMutationTesting(DefaultCoverageGenerator.java:104)
at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:89)
at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:46)
at org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:118)
at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:101)
at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:43)
at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:71)
at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:43)
at org.pitest.pitclipse.pitrunner.PitRunner.runPIT(PitRunner.java:49)
at org.pitest.pitclipse.pitrunner.PitRunner.main(PitRunner.java:28)
它说测试没有过去,但JUnit没有错误或失败。
如果您需要任何进一步的信息,请不要确定原因是什么,请询问。