问题陈述-SonarQube仪表板在仪表板上没有显示单元测试矩阵,应该在Coverage矩阵旁边
Jenkins插件SonarQube扫描仪-
sonar.projectBaseDir=/home/jenkin/workspace/github.com/company/project/src
sonar.projectKey=sonar_projectname
sonar.projectName=sonar_projectname
sonar.projectVersion=${BUILD_NUMBER}
sonar.go.coverage.reportPaths=cover-all.out
sonar.go.gometalinter.reportPaths=static-analysis.out
sonar.go.tests.reportPaths=test-report.json
sonar.sources=.
sonar.sources.inclusions=**/**.go
sonar.exclusions=**/vendor**, **/*.xml
注意:官方文档https://docs.sonarqube.org/display/PLUG/Go+Coverage+Results+Import
仪表板仅显示覆盖率
答案 0 :(得分:0)
声纳属性缺少这些键:
sonar.tests=.
sonar.test.inclusions=**/**_test.go