hcoles / pitest

State of the art mutation testing system for the JVM
Apache License 2.0
1.71k stars 357 forks source link

Joda-Time Mutation testing requires a green suite Error #1314

Open islamelgendy opened 8 months ago

islamelgendy commented 8 months ago

I'm having trouble running the PIT mutation analysis on the Joda-time project. I'm using a version from Defects4J, where I generated automatic tests using the Randoop tool. The project is here: joda-time.zip

The project compiles and tests run normally using mvn test. However, running the mutation analysis triggers a build failure as follows:

[ERROR] Failed to execute goal org.pitest:pitest-maven:1.14.2:mutationCoverage (default-cli) on project joda-time: Execution default-cli of goal org.pitest:pitest-maven:1.14.2:mutationCoverage failed: 63 tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite.

All the errors are happening in the tests generated by Randoop.

Any help?

islamelgendy commented 8 months ago

I made a few changes in my pom.xml file, updating the PIT version and adding the junit5 dependency. joda-time.zip

Now the tests run without failure, but an UNKNOWN error happens. Here is the error.

13:28:15 PIT >> SEVERE : Coverage generator Minion exited abnormally due to UNKNOWN_ERROR
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.924 s
[INFO] Finished at: 2024-03-13T13:28:15Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.pitest:pitest-maven:1.14.2:mutationCoverage (default-cli) on project joda-time: Execution default-cli of goal org.pitest:pitest-maven:1.14.2:mutationCoverage failed: Coverage generation minion exited abnormally! (UNKNOWN_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 : 25.392-b08
[ERROR] Uptime : 7334
[ERROR] Input -> 
[ERROR]  1 : -Dclassworlds.conf=/usr/share/maven/bin/m2.conf
[ERROR]  2 : -Dmaven.home=/usr/share/maven
[ERROR]  3 : -Dlibrary.jansi.path=/usr/share/maven/lib/jansi-native
[ERROR]  4 : -Dmaven.multiModuleProjectDirectory=/home/islam/MyWork/New-work-2023/DBT-workbench/resources/subjects/fixed/time/5
[ERROR] BootClassPathSupported : true
[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 : 25.392-b08
[ERROR] Uptime : 7334
[ERROR] Input -> 
[ERROR]  1 : -Dclassworlds.conf=/usr/share/maven/bin/m2.conf
[ERROR]  2 : -Dmaven.home=/usr/share/maven
[ERROR]  3 : -Dlibrary.jansi.path=/usr/share/maven/lib/jansi-native
[ERROR]  4 : -Dmaven.multiModuleProjectDirectory=/home/islam/MyWork/New-work-2023/DBT-workbench/resources/subjects/fixed/time/5
[ERROR] BootClassPathSupported : true
[ERROR]