JaCoCo - SonarQube - No information about coverage per test

前端 未结 4 1479
清歌不尽
清歌不尽 2021-01-03 21:35

I\'m using JaCoCo for Code Coverage. The Unit Test reports are created with junit and they are imported correctly, so that the unit test information is shown properly. The <

4条回答
  •  天命终不由人
    2021-01-03 22:25

    In my case below commands works.

    mvn clean org.jacoco:jacoco-maven-plugin:0.7.3.201502191951:prepare-agent install
    mvn sonar:sonar 
    

    To check code coverage: Start SonarQube server -> Run above two commands one after another & you will see code coverage in SonarQube Client.

    FYI: My SonarQube Version - 5.1.2. You can download latest version from SonarQube Download

提交回复
热议问题