pit-idea-plugin
pit-idea-plugin copied to clipboard
Gradle plugin run mutates a test class
I am still trying to understand what is the expected behavior of the PIT and how all of the pieces are connected.
In my kotlin-mutation-testing project I am experiencing strange behaviour:
When I run tests using the cmd ./gradlew pitest then Pit Test Coverage Report shows a single class being found (ApplicationService.kt)(ok)

However, when I run pitest using gradle-pitest-plugin (Pit Runner) the Pit Test Coverage Report contains two classes (ApplicationService.kt - ok and ApplicationServiceTest.kt - not ok)

I have the very same issue. Though I understand that it works when you run ./gradlew pitest as gradle-pitest-plugin has a default value for testSourceSets of sourceSets.test. Now is it possible to have the same for pit-idea-plugin?