szpak / gradle-pitest-plugin

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

HTML report does not contain source listing in 1.4.8 #198

Closed davidburstrom closed 4 years ago

davidburstrom commented 4 years ago

There's been a regression between 1.4.7 and 1.4.8 in the HTML reporting, when looking at individual classes. In 1.4.7 the report still contained the source code of the mutated production classes, but in 1.4.8 that went away. The report still lists the performed mutations and line numbers.

szpak commented 4 years ago

Thanks for your report. Do you use the same PIT version (overriden by pitestVersion) in both cases or the default ones?

davidburstrom commented 4 years ago

I've tried a permutation of PITest [1.5.0, 1.5.1] and plugin [1.4.7, 1.4.8], and the source code is omitted as soon as 1.4.8 is used.

szpak commented 4 years ago

Thanks. It's probably this commit. I will write a functional test to verify that and I will try to fix it.

szpak commented 4 years ago

@davidburstrom You may want to play with 1.4.9-SNAPSHOT to check if it fixed the problem for you.

buildscript {
    repositories {
        mavenCentral()
        //Needed only for SNAPSHOT versions
        maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
    }
    dependencies {
        classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.4.9-SNAPSHOT'
    }
}
davidburstrom commented 4 years ago

I'm inclined to say that it is indeed fixed in 1.4.9-SNAPSHOT. Well done!

szpak commented 4 years ago

Thanks. 1.4.9 just has been released.