Sonar does not shows up Code Coverage after build successful with Jenkins Sonar plugin

后端 未结 5 1019
囚心锁ツ
囚心锁ツ 2021-02-05 12:49

I am trying to get code coverage with Sonar and Jenkins. I see Jenkins\' Sonar plugin successfully executes JUnit test cases and completes build successfully. But Sonar does not

5条回答
  •  花落未央
    2021-02-05 13:33

    Your Sonar plug-in cannot find the report file generated by Jacoco.

    In your pom(parent or child) look for the tag under jacoco/prepare-agent execution. Change the name and the location to target/jacoco.exec and you are good to go!

提交回复
热议问题