PIT未发现突变

2024-04-08

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

output:

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 上,并尝试了带有星号 * 或特定类路径的 targetClasses/testClasses 。

Thanks!


Pitest 改变编译后的字节码,而不是源文件。

您不希望在类路径中包含已编译的代码 - 仅包含其依赖项。

强烈建议使用构建集成之一(maven、gradle、ant)而不是命令行工具,因为这样更不容易出错。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

PIT未发现突变 的相关文章

随机推荐