我在生成Pitest报告时遇到此错误 如何解决

I am facing this error while genearting Pitest report How to solve it

提问人:Kevin Patel 提问时间:5/28/2023 最后编辑:HudsonKevin Patel 更新时间:5/31/2023 访问量:81

问:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.148 s
[INFO] Finished at: 2023-05-26T21:44:44+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.pitest:pitest-maven:1.7.2:mutationCoverage (default-cli) on project junit-5-practice: Execution default-cli of goal org.pitest:pitest-maven:1.7.2:mutationCoverage failed: Coverage generation minion exited abnormally!
[ERROR] 
[ERROR] Please copy and paste the information and the complete stacktrace below when reporting an issue
[ERROR] VM : OpenJDK 64-Bit Server VM
[ERROR] Vendor : Private Build
[ERROR] Version : 17.0.7+7-Ubuntu-0ubuntu122.04.2
[ERROR] Uptime : 4896
[ERROR] Input -> 
[ERROR]  1 : -Dclassworlds.conf=/opt/apache-maven/bin/m2.conf
[ERROR]  2 : -Dmaven.home=/opt/apache-maven
[ERROR]  3 : -Dlibrary.jansi.path=/opt/apache-maven/lib/jansi-native
[ERROR]  4 : -Dmaven.multiModuleProjectDirectory=/home/kevin/Desktop/JunitPractice/junit-5-practice
[ERROR] BootClassPathSupported : false
[ERROR] 
[ERROR] 
[ERROR] Please copy and paste the information and the complete stacktrace below when reporting an issue
[ERROR] VM : OpenJDK 64-Bit Server VM
[ERROR] Vendor : Private Build
[ERROR] Version : 17.0.7+7-Ubuntu-0ubuntu122.04.2
[ERROR] Uptime : 4897
[ERROR] Input -> 
[ERROR]  1 : -Dclassworlds.conf=/opt/apache-maven/bin/m2.conf
[ERROR]  2 : -Dmaven.home=/opt/apache-maven
[ERROR]  3 : -Dlibrary.jansi.path=/opt/apache-maven/lib/jansi-native
[ERROR]  4 : -Dmaven.multiModuleProjectDirectory=/home/kevin/Desktop/JunitPractice/junit-5-practice
[ERROR] BootClassPathSupported : false
[ERROR] 
[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

如何解决此错误?

我在生成Pitest报告时遇到此错误。我已经成功运行了'mvn compile',然后尝试运行cmd来生成Pitest报告。-->mvn test-compile org.pitest:pitest-maven:mutationCoverage

皮斯特

评论


答:

0赞 Ivan Vakhrushev 5/31/2023 #1

尝试将 pitest-maven 插件更新到最新版本(目前是 1.14.1),并使用 pitest-junit5-plugin 的相应版本 1.2.0

另请参阅 Java 8 到 Java 17 的迁移 + pitest 失败 - 突变测试需要绿色套件