pitest has a plugin for junit5 so that should just...
# spek
c
pitest has a plugin for junit5 so that should just work
s
it doesn’t. I’ve opened an issue in regards to it. If I create a plain junit5 test it works fine, but not with only spek tests https://github.com/szpak/gradle-pitest-plugin/issues/111
r
Correct me if I'm wrong but from what I see here: https://github.com/pitest/pitest-junit5-plugin it only supports JUnit Jupiter
s
where does it say only jupiter? I thought it indicated that it should work for all junit5 tests.
r
Adds support to pitest for JUnit 5 and the Jupiter api.
and if you check https://github.com/pitest/pitest-junit5-plugin/blob/master/src/main/java/org/pitest/junit5/JUnit5TestUnit.java, you should see that checking for tests with a
MethodSource
which is only present for test frameworks that are method based.
s
oh darn… I don’t know that much about the internals of junit. Do you see a way of modifying pit to work for spek?
oh, or would this pr add support for Spek as well as KotlinTest? https://github.com/pitest/pitest-junit5-plugin/pull/22
r
I'm not entirely sure, does it do byte code manipulation or source? re: https://github.com/pitest/pitest-junit5-plugin/pull/22 this won't add support for spek.
s
😞
I don't know how it works. I just wish it worked with spek... i had planned on using pitest for all my projects, but if it's not possible with spek I might have to stop using spek.