Maven pitest-PIT需要JUnit4(但可以运行JUnit3测试)或TestNG

Maven pitest-PIT需要JUnit4(但可以运行JUnit3测试)或TestNG,maven,junit,pom.xml,junit4,pitest,Maven,Junit,Pom.xml,Junit4,Pitest,我正在尝试使用pitest对ApacheAirAvata(v0.16)进行突变测试。我在build plugins标签下的pom.xml文件中添加了以下行: <plugin> <groupId>org.pitest</groupId> <artifactId>pitest-maven</artifactId> <version>1.1.11</version> </plugin&g

我正在尝试使用pitest对ApacheAirAvata(v0.16)进行突变测试。我在build plugins标签下的pom.xml文件中添加了以下行:

<plugin>
    <groupId>org.pitest</groupId>
    <artifactId>pitest-maven</artifactId>
    <version>1.1.11</version>
 </plugin>

org.pitest
可怜的马文
1.1.11
它给了我以下的错误

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.012 s
[INFO] Finished at: 2017-03-30T14:27:44+03:00
[INFO] Final Memory: 21M/212M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.pitest:pitest-maven:1.1.11:mutationCoverage (default-cli) on project airavata-server-configuration: Execution default-cli of goal org.pitest:pitest-maven:1.1.11:mutationCoverage failed: No test library found on classpath. PIT requires either JUnit 4 (but can run JUnit 3 tests) or TestNG
[ERROR] See http://pitest.org for more details.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :airavata-server-configuration
[INFO]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:1.012秒
[信息]完成时间:2017-03-30T14:27:44+03:00
[信息]最终内存:21M/212M
[信息]------------------------------------------------------------------------
[错误]无法执行目标组织。pitest:pitest maven:1.1.11:project airavata服务器配置:执行目标组织的默认cli。pitest:pitest maven:1.1.11:mutationCoverage失败:在类路径上找不到测试库。PIT需要JUnit4(但可以运行JUnit3测试)或TestNG
[错误]请参阅http://pitest.org 更多细节。
[错误]->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[错误]
[错误]纠正问题后,可以使用命令恢复生成
[错误]mvn-rf:airavata服务器配置
我没有TestNG,但是junit4路径包含在类路径中。我尝试如下提供一些有针对性的测试用例,但也不起作用

<plugin>
    <groupId>org.pitest</groupId>
    <artifactId>pitest-maven</artifactId>
    <version>1.1.11</version>
    <configuration>
        <targetTests>
            <param>org.apache.archiva.common.utils*</param>
        </targetTests> 
    </configuration>
</plugin>

org.pitest
可怜的马文
1.1.11
org.apache.archiva.common.utils*
我也尝试了下面的标签,但它没有任何帮助

<failWhenNoMutations>false</failWhenNoMutations>
false

Archiva似乎包含许多不包含源代码或测试的模块

pitest的1.1.12版本将自动跳过这些测试(请参阅),但在该版本发布之前,您需要在不包含测试的每个模块中设置skip属性