question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

org.pitest.util.PitError: Coverage generation minion exited abnormally

See original GitHub issue

The following are my plugins

plugins { id 'org.springframework.boot' version '2.6.6' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' id 'info.solidsoft.pitest' version '1.7.4' }

I then try to run

gradle pitest

I get the error

`> Task :pitest 5:48:41 PM PIT >> INFO : Verbose logging is disabled. If you encounter a problem, please enable it before reporting an issue. 5:48:42 PM PIT >> INFO : Incremental analysis reduced number of mutations by 0 5:48:42 PM PIT >> INFO : Created 18 mutation test units in pre scan 5:48:43 PM PIT >> INFO : Sending 56 test classes to minion 5:48:43 PM PIT >> INFO : Sent tests to minion 5:48:43 PM PIT >> SEVERE : Coverage generator Minion exited abnormally due to UNKNOWN_ERROR
Exception in thread “main” org.pitest.util.PitError: Coverage generation minion exited abnormally!

Please copy and paste the information and the complete stacktrace below when reporting an issue
VM : OpenJDK 64-Bit Server VM Vendor : Oracle Corporation Version : 17.0.2+8-86 Uptime : 5081 Input -> 1 : -Dfile.encoding=windows-1252 2 : -Duser.country=US 3 : -Duser.language=en 4 : -Duser.variant BootClassPathSupported : false

Please copy and paste the information and the complete stacktrace below when reporting an issue VM : OpenJDK 64-Bit Server VM Vendor : Oracle Corporation Version : 17.0.2+8-86 Uptime : 5082 Input -> 1 : -Dfile.encoding=windows-1252 2 : -Duser.country=US 3 : -Duser.language=en 4 : -Duser.variant BootClassPathSupported : false

    at org.pitest.util.Unchecked.translateCheckedException(Unchecked.java:20)
    at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:106)
    at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:52)
    at org.pitest.mutationtest.tooling.MutationCoverage.runAnalysis(MutationCoverage.java:149)
    at org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:139)
    at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:123)
    at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:54)
    at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:98)
    at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)

Caused by: org.pitest.util.PitError: Coverage generation minion exited abnormally!

Please copy and paste the information and the complete stacktrace below when reporting an issue VM : OpenJDK 64-Bit Server VM Vendor : Oracle Corporation Version : 17.0.2+8-86 Uptime : 5081 Input -> 1 : -Dfile.encoding=windows-1252 2 : -Duser.country=US 3 : -Duser.language=en 4 : -Duser.variant BootClassPathSupported : false

    at org.pitest.coverage.execute.DefaultCoverageGenerator.gatherCoverageData(DefaultCoverageGenerator.java:148)
    at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:90)
    ... 7 more

Task :pitest FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:pitest’.

Process ‘command ‘C:\Users\Valentina.Cupac.jdks\openjdk-17.0.2\bin\java.exe’’ finished with non-zero exit value 1 `

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hcolescommented, Apr 28, 2022

@szpak thanks, I’ll take a look tomorrow and see what I’ve broken.

1reaction
hcolescommented, Apr 28, 2022

Assuming this relates to this project

https://github.com/valentinacupac/banking-kata-java

The issue is that you are using junit5, but have not configured the pitest junit5 plugin.

As per the documentation at https://gradle-pitest-plugin.solidsoft.info/ you can configure it with

pitest {
    pitestVersion = '1.7.5'
    junit5PluginVersion = '0.15'   
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

My PITEST won't run. Coverage generation minion exited ...
I fixed JUnit 5 and "minion exited abnormally" issue by following Mr. Mkyong's example at Maven – PITest mutation testing example.
Read more >
Coverage generator Minion exited abnormally due to ... - GitHub
MutationCoverageReport.main(MutationCoverageReport.java:45) [pitest] Caused by: org.pitest.util.PitError: Coverage generation minion exited ...
Read more >
Coverage generation minion exited abnormally - Google Groups
I get this error: Failed to execute goal org.pitest:pitest-maven:1.1.8:mutationCoverage (default-cli) on project model ...
Read more >
FAQ - PIT Mutation Testing
My code has really poor test coverage, will mutation testing take forever? No. Due to the way PIT picks which tests to run...
Read more >
pitest - Bountysource
... "main" org.pitest.util.PitError: Coverage generation minion exited abnormally! ... forName(Class.java:348) [22:57:27]W: [Step 4/4] at org.pitest.util.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found