https://kotlinlang.org logo
#spek
Title
c

christophsturm

02/13/2019, 12:44 PM
pitest has a plugin for junit5 so that should just work
s

snowe

02/13/2019, 5:06 PM
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

raniejade

02/14/2019, 10:19 AM
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

snowe

02/14/2019, 6:26 PM
where does it say only jupiter? I thought it indicated that it should work for all junit5 tests.
r

raniejade

02/14/2019, 11:03 PM
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

snowe

02/15/2019, 12:19 AM
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

raniejade

02/17/2019, 9:36 PM
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

snowe

02/17/2019, 11:17 PM
😞
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.
16 Views