Code coverage is not generated with sonarqube 7.4


(Prabodh Bansal) #1

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) 7.4
    SonarQube = 7.4
    sonar-scanner-3.2.0.1227

  • what are you trying to achieve
    Code coverage is not generated with sonarqube 7.4

  • what have you tried so far to achieve this
    I installed server and sonarcube and obtained result in localhost 9000 . but code coverage is 0.
    Regards
    Prabodh Bansal


(Adam Gabryƛ) #2

SonarQube does not calculate code coverage by its own. You have to use a supported tool and push the result to the server. Examples:


Test coverage 0% using Spring-boot-starter-test