Sonar集成测试未显示使用gradle

时间:2017-06-06 12:15:02

标签: gradle sonarqube jacoco cobertura sonarqube-scan

我正在使用“org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.2.1”,并且已经创建了Jacoco报告文件。

这是我在build.gradle中的sonarQube配置:

sonarqube {
    properties {
        property "sonar.host.url", "https://localhost"
        property "sonar.projectName", "Project"
        property "sonar.projectKey", "org.sonarqube:java-gradle"
        property "sonar.sourceEncoding", "UTF-8"
        property "sonar.cobertura.reportPath", "$buildDir/reports/cobertura/coverage.xml"
        property "sonar.jacoco.itReportPath", "$buildDir/jacoco/integrationTest.exec"
        property "sonar.exclusions", "**/build/**,**/thirdparty/**,**/*.properties"
    }
}

但报道仍然保持不变: sonarqube coverage

0 个答案:

没有答案