mjedynak / pit-idea-plugin

IntelliJ Idea plugin for PIT mutation testing
MIT License
52 stars 16 forks source link

Gradle plugin run mutates a test class #56

Open igorwojda opened 1 year ago

igorwojda commented 1 year ago

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

ver-jonas commented 1 year ago

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?