szpak / gradle-pitest-plugin

Gradle plugin for PIT Mutation Testing
http://gradle-pitest-plugin.solidsoft.info/
220 stars 58 forks source link

test runtime classpath missing from launch class path #150

Open Vampire opened 5 years ago

Vampire commented 5 years ago

The runtimeClasspath of the configured testSourceSets is added to the additionalClasspath, but it might also be needed in the launch classpath. I played with pitest-descartes and there I got some missing classes. I have a MutationInterceptor that filters out identical mutations. It uses Mutant#getBytes() to find duplicates. During this call with pitest descartes as mutation engine, I got the ClassNotFoundException unless I manually added the test runtime classpath to the launch classpath. Maybe it would make sense to add it to both by default, not only the minion classpath.