Gradle JaCoCo插件-在报告中无法单击类和方法名称 [英] Gradle JaCoCo plugin - class and method names not clickable in report
问题描述
我创建了一个使用Gradle的简单Java项目.我添加了一些单元测试和集成的JaCoCo插件,以查看代码覆盖率.一切都很好,但是,在HTML报告中,我无法单击类名来确切查看覆盖了哪些行和分支.我有另一个使用Maven和JaCoCo的项目,该功能在其中起作用.是Gradle插件的限制,还是我做错了什么?这是我的build.gradle:
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'
}
这就是我所看到的:
推荐答案
您描述的问题似乎已在Gradle 1.10-rc-2中修复.
The problem that you are describing appears to be fixed in Gradle 1.10-rc-2.
这篇关于Gradle JaCoCo插件-在报告中无法单击类和方法名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!