pit-idea-plugin icon indicating copy to clipboard operation
pit-idea-plugin copied to clipboard

Gradle plugin run mutates a test class

Open igorwojda opened this issue 2 years ago • 1 comments

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) image

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) image image image

igorwojda avatar Nov 22 '22 08:11 igorwojda

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?

ver-jonas avatar Feb 28 '23 12:02 ver-jonas