-
Notifications
You must be signed in to change notification settings - Fork 354
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
Caused by: org.pitest.util.PitError: Coverage generation minion exited abnormally! (UNKNOWN_ERROR) #1235
Comments
Enabling pitest's verbose logging will provide more details of what happened before the error occured. You do not seem to have set a pitest version, so the gradle plugin will be using an old, default version. You are using 1.2.0 of the pitest-junit-5-plugin. This requires at least version 1.14.0 of pitest (latest version is 1.14.2). Depending on the version of JUnit5 you are using, you may require addtional dependencies. See |
Okay, yeah, that is the problem: I am using Pitest 1.9.0 (that's set somewhere else in the build.gradle, and it's my error in not including that information). I get the same error when I roll back to the junit 5 version 0.15. I actually attempted the 1.2.0 version based on internal advice at my company. |
I found the solution. Apparently, the highest supported pitest version at my company is currently 1.7.x. Going much later interferes with other tools they've set up, and as such using them will always produce errors. Yes, that's old. I expect that, as all open source projects have a fairly lengthy introduction process into our environment. |
Unless you are using 3rd party plugin for pitest, it is hard to imagine how it could interfere with other tools. |
Same issue here, but the change below, fixed for me: <dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency> to: <dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency> |
@GiuseppeMP the difference between those two is that the latter also pulls in |
I have a mostly empty project that I'm currently starting that is giving me the above error. Let's start with a stack trace:
My build.gradle section for pitest looks like
pitest { junit5PluginVersion.set('1.2.0') targetClasses.set(['com.company.*']) threads.set(4) timeoutConstInMillis.set(60000) mutationThreshold.set(0) coverageThreshold.set(0) outputFormats.set(['XML', 'HTML']) timestampedReports.set(false) enableDefaultIncrementalAnalysis.set(true) jvmArgs.set(['-Xmx2G']) avoidCallsTo.set(['java.util.logging','org.apache.log4j','org.slf4j','org.apache.commons.logging']) excludedMethods.set(['hashCode']) useClasspathFile.set(true) }
What am I doing wrong? Are there more options I don't know about that could give me better debugging info?
The text was updated successfully, but these errors were encountered: