java - SonarQube Multi-Module Code Coverage -
i have multi-module project can't seem accurate unit test code coverage report on sonarqube. use buildr , jacoco test coverage generation. file heirarchy similar below.
project --module1 ----reports ------jacoco --------jacoco.cov (jacoco execution file, used .exec) --module2 --reports ----jacoco (generated html, csv, , xml report files) ----junit (junit xml report)
at time, no unit tests exist module2. problem believe overall coverage on sonarqube reflects module1 , ignores module2 completely. makes coverage appear higher whole project. have thoughts on this? thank input.
if problem correctly looking force coverage 0% when there no coverage file generated. have set correct parameter behaviour :
sonar.jacoco.reportmissing.force.zero=true
see documentation more details : http://docs.sonarqube.org/display/plug/usage+of+jacoco+with+java+plugin
Comments
Post a Comment