我有一个文件夹“mutant”,其中包含一个文本文件,其中只有一行名为java.utils.Collection
. 我使用 Randoop 生成了测试用例并将它们保存在同一个文件夹中。测试用例的名称为 RegressionTest*.java 我现在正在尝试运行 PIT 以生成突变体。我根据http://pitest.org/quickstart/commandline/键入的命令如下---
java -cp C:\Users\happy\OneDrive\Desktop\pitest-1.4.3.jar;C:\Users\happy\OneDrive\Desktop\pitest-command-line-1.4.3.jar;C:\Users\happy\OneDrive\Desktop\pitest-entry-1.4.3.jar;C:\Users\happy\OneDrive\Desktop\junit-4.10.jar;C:\Users\happy\OneDrive\Desktop\testng-6.8.5.jar
org.pitest.mutationtest.commandline.MutationCoverageReport
--reportDir C:\Users\happy\OneDrive\Desktop\report
--targetClasses myclasses.*
--targetTests mutant.Regression*
--sourceDirs C:\Users\happy\OneDrive\Desktop\mutant
我得到的错误是Exception in thread "main". org.Pitest.help.PitHelpError: No mutations found. This probably means there is an issue with either the supplied classpath or filters
我相信这个问题与targetClasses有关。有人有什么想法吗?