简体   繁体   中英

SonarQube +Unit Test coverage +Java Project

I am invoking SonarQube analysis from Jenkins and able to get the Unit Test Success Percentage but not able to see the Unit Tests coverage??? Can anyone please help in getting this in Sonar dashboard?What parameter should I add while invoking from Jenkins?Please let know for both Windows and Linux machines?

This is a huge blocker for my project.Please help.Sonar version is 4.4.

With maven you can build your project using the Jacoco plugin and then you can configure Sonar to use the Jacoco report. I don't think there should be a difference between Linux and Windows, except on loading the Sonar web server.

More information is @ http://www.sonarqube.org/measure-coverage-by-integration-tests-with-sonar-updated/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM