Domanda

I've created a simple Java project which uses Gradle. I've added some unit tests and integrated JaCoCo plugin to see the code coverage. It all works well, however, in the HTML report I can't click on the class name to see exactly which lines and branches are covered. I have another project which uses Maven and JaCoCo where this functionality works. Is it a limitation of Gradle plugin, or am I doing something wrong? Here's my build.gradle:

apply plugin: 'java'
apply plugin: 'jacoco'

repositories {
    mavenCentral()
}

dependencies {
    testCompile 'junit:junit:4.10'
}

And here's what I'm seeing:

È stato utile?

Soluzione

The problem that you are describing appears to be fixed in Gradle 1.10-rc-2.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top