如何让 sonarqube 拾取 jacoco 测试覆盖率报告

问题描述

我有使用 jacoco 插件的 gradle 项目

plugins{

    id 'jacoco'
    id 'org.sonarqube' version '3.0'

}

test{

    exclude 'xx'

}

jacocoTestReport{

    dependsOn test
    reports{
        xml.enabled true
        csv.enabled false
        html.enabled true
    }
}

plugins.withType(JacocoPlugin){

    tasks["test"].finalizedBy 'jacocoTestReport'

}

现在我的本地我可以在默认位置看到测试覆盖率报告/jacoco/test/html/index.html 我们的公司使用 jules 构建,然后进行 sonarQube 分析,但似乎没有收到我的 jacoco 报告

我应该输入任何其他信息吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)