C:\Users\TZ>java -cp C:\Users\TZ\Desktop\femr-master\pitest-command-line-
1.2.4.jar;C:\Users\TZ\Desktop\femr-master\pitest-
1.2.4.jar;C:\Users\TZ\Desktop\femr-master\pitest-entry-
1.2.4.jar;C:\Users\TZ\Desktop\femr-master\junit-
4.12.jar;C:\Users\TZ\Desktop\batch-import-3.0\target\batch-import-
3.0.4.jar;C:\Users\TZ\Desktop\femr-
master\xmlpull_1_0_5.jar;C:\Users\TZ\Desktop\femr-master\xstream-1.4.10.jar
org.pitest.mutationtest.commandline.MutationCoverageReport --reportDir
C:\Users\TZ\Desktop --targetClasses org.neo4j.batchimport.* --targetTests
org.neo4j.batchimport.* --sourceDirs C:\Users\TZ\Desktop\batch-import-
3.0\src
输出:
6:07:23 PM PIT >> INFO : Verbose logging is disabled. If you encounter an
problem please enable it before reporting an issue.
6:07:23 PM PIT >> INFO : Sending 0 test classes to minion
6:07:23 PM PIT >> INFO : Sent tests to minion
6:07:23 PM PIT >> INFO : Calculated coverage in 0 seconds.
6:07:23 PM PIT >> INFO : Created 0 mutation test units
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.
See http://pitest.org for more details.
我想知道过滤器为什么不正确。我真的把我在CP上的所有内容都放在CP上,并尝试使用star *或特定类路径的targetClasses / testClasses。
谢谢!
答案 0 :(得分:4)
Pitest改变编译的字节码,而不是源文件。
您不希望在类路径中包含已编译的代码 - 仅包含其依赖项。
强烈建议使用其中一个构建集成(maven,gradle,ant)而不是命令行工具,因为这样不容易出错。