dpmp9359 2018-06-28 12:39
浏览 213

SonarQube仪表板上不可见Golang单元测试矩阵

Problem Statement - SonarQube dashboard not showing Unit test matrix on the dashboard which should be available next to Coverage matrix

Jenkins Plugin SonarQube Scanner -

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

Note: Offical Document https://docs.sonarqube.org/display/PLUG/Go+Coverage+Results+Import

Dashboard only display coverage

SonarQube Dashboard

  • 写回答

1条回答 默认 最新

  • douhui2307 2018-10-17 06:42
    关注

    sonar properties has these keys missing :

    sonar.tests=.
    sonar.test.inclusions=**/**_test.go
    
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 Web.config连不上数据库
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退
  • ¥20 win系统的PYQT程序生成的数据如何放入云服务器阿里云window版?
  • ¥50 invest生境质量模块
  • ¥15 nhanes加权logistic回归,svyglm函数