SonarQube: Coverage on New Code never calculated

后端 未结 3 1090
不知归路
不知归路 2021-01-18 22:42

I have set up SonarQube, Maven and Cobertura to upload unit test coverage at every build run. I want to use the differential views to get coverage for the delta (new code on

相关标签:
3条回答
  • 2021-01-18 23:09

    Adding this sonar.java.binaries=classes directory, most likely target/classes helped me in fixing this issue. No JaCoCo analysis of project coverage can be done since there is no class files

    0 讨论(0)
  • 2021-01-18 23:10

    "Coverage on New Code" is only displayed if you are using/activating SCM support (SVN, Git, ...).

    sonar.scm.disabled=false

    0 讨论(0)
  • 2021-01-18 23:23

    The key requirement to obtain new_code -related information/metrics is to leverage SonarQube SCM integration. And to benefit from that you have to install a compatible SCM Plugin applicable to your project (e.g. Git Plugin, SVN Plugin etc.).

    0 讨论(0)
提交回复
热议问题