Gradle JaCoCo plugin - class and method names not clickable in report

懵懂的女人 提交于 2019-12-12 02:16:25

问题


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:


回答1:


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



来源:https://stackoverflow.com/questions/20567665/gradle-jacoco-plugin-class-and-method-names-not-clickable-in-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!