Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
islamelgendy opened this issue Mar 13, 2024 · 1 comment
Open

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

islamelgendy opened this issue Mar 13, 2024 · 1 comment

Comments

@islamelgendy
Copy link

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
Copy link
Author

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] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant