问题描述
我有一个使用Java11和junit5的项目,无法通过InteliJ插件运行PIT突变测试。
我得到的错误是:
Exception in thread "main" org.pitest.util.PitError: Coverage generation minion exited abnormally. Please check the classpath and/or enable test plugin for used test tool.
Please copy and paste the information and the complete stacktrace below when reporting an issue
VM : OpenJDK 64-Bit Server VM
vendor : AdoptOpenJDK
Version : 11.0.6+10
Uptime : 694
Input ->
1 : -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=51955:/Applications/IntelliJ IDEA CE.app/Contents/bin
2 : -Dfile.encoding=UTF-8
bootclasspathSupported : false
我拥有IDEA的最新版本:2020.2.3,当然还有最新的PIT插件:1.4.4。该插件包含使用junit5运行PIT的修复程序。
我从以下位置运行PIT:编辑配置-> PIT运行器。
我正在使用Maven,因此在pom中我具有Junit的依赖项:
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.7.0-M1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.7.0-M1</version>
<scope>test</scope>
</dependency>
知道我在做什么错吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)