-
Notifications
You must be signed in to change notification settings - Fork 26
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
java.lang.NoSuchMethodError: 'boolean org.junit.platform.commons.util.ReflectionUtils.returnsPrimitiveVoid(java.lang.reflect.Method)' #108
Comments
This sort of issue is usually due to a mismatch between the junit platform and jupiter versions. How are you running pitest (maven, gradle, other)? What versions are you using of pitest and the junit 5 plugin? Do you have any explicit dependencies on junit platform? |
Assuming Gradle, you should get information about the automatically added junit-related dependencies, when use |
Yes, I use Gradle plugin. My Junit5 dependencies:
And my plugin config:
I tried both |
What happens if you use the latest version of of junit5 plugin (1.2.1)? (you will need to also set pitestVersion="1.17.2" in order to use it. At the moment you are using the default version supplied by the gradle plugin, which is very old.) |
@hcoles I updated my config:
however, I still get the same error |
Are you using the latest version of the gradle plugin? |
@hcoles I use "1.15.0" so I guess it's the latest one. |
GPP itself shouldn't impose any JUnit 5 version, if overridden in configuration :-/. Btw:
Why something enforces 5.8.2 here, and 5.11.3 there? Junit-jupiter 5.8.2 is compatible with junit-plaform 1.8.2, not 1.11.3:
|
When running with Jupiter 5.11.3
The text was updated successfully, but these errors were encountered: