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

Kotest Pitest extension not compatible with Kotest version > 5.4.0 #3359

Closed
roschwartz79 opened this issue Jan 26, 2023 · 5 comments
Closed

Comments

@roschwartz79
Copy link

Which version of Kotest are you using
5.4.0

I am integrating Pitest into my micronaut application that uses Kotest as the testing framework. I am using the following versions that are relevant to this issue:

Kotest 5.4.0
io.kotest.extensions:kotest-extensions-pitest:1.1.0
io.micronaut.test:micronaut-test-kotest5:3.8.0
io.kotest:kotest-runner-junit5-jvm:5.4.0

For my Pitest configuration, I am running Pitest version 1.8.1 as it was pointed out that the kotest pitest extension is only compatible with versions < 1.9.0.

For my Pitest gradle plugin version I am using 1.9.0. The version of this plugin does not correspond to the version of Pitest running because I specify that in the plugin configuration.

When I move to kotest version 5.3.2, Pitest works as expected! With version 5.4.0 and above, I get the following error:

2:43:12 PM PIT >> FINE : MINION : java.lang.NoSuchMethodError: 'io.kotest.core.descriptors.TestPath io.kotest.core.descriptors.Descriptor$DefaultImpls.path$default(io.kotest.core.descriptors.Descriptor, boolean, int, java.lang.Object)'

I see there was a thread similar to this with a similar error about a Kotest Spring extension, see that here. I wonder if there is a similar fix or a different regression that was introduced in Kotest 5.4.0 and above? For now I am getting by with 5.3.2 but upgrading to latest would be ideal!

@Kantis
Copy link
Member

Kantis commented Feb 2, 2023

I think we just need to do a new release of the Pitest extension, built with the latest Kotest version. I think I fixed the publishing of snapshots there. Could you give the latest snapshot a try when it's available?

@Kantis
Copy link
Member

Kantis commented Feb 5, 2023

Pitest 1.9 introduced a breaking change in the API used by the Kotest extension. There's a new snapshot build out which bumps Pitest compatibility to 1.9.0+

@Kantis
Copy link
Member

Kantis commented Feb 5, 2023

Kotest-extensions-pitest 1.2.0 is out, which supports Kotest 5.5 and Pitest 1.9+

@Kantis Kantis closed this as completed Feb 5, 2023
@Tyrannoseanus
Copy link

@Kantis you mentioned that 1.2.0 is "out" now? Where is that released? I can only see 1.1.0 in Sonatype Central linked from the extensions repo

https://central.sonatype.com/artifact/io.kotest.extensions/kotest-extensions-pitest/1.1.0/versions

@Kantis
Copy link
Member

Kantis commented Mar 24, 2023

I must've forgot to release the artefacts. Fixing..

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

3 participants