Sonarqube is not showing code coverage after running

前端 未结 3 1557
梦如初夏
梦如初夏 2021-02-19 02:29

I\'m running sonarqube with maven.

I have installed it using following way. Using brew, I installed mysql and sonar.

When

3条回答
  •  忘了有多久
    2021-02-19 03:25

    I found the solution -

    The maven plugin I have included has configuration of Jacoco's destfile and datafile as ${basedir}/target/coverage-reports/jacoco-unit.exec

    but by default sonar reads at ${basedir}/target/jacoco.exec. I changed the default at http://localhost:9000/settings?category=java


    Ref: Sonar Code Coverage

提交回复
热议问题