maven - How to configure a sonar-project.properties file for code coverage? -
current scanner running through , scanning parent , skipping rest of nested files. if run sonarlint (using cli , specifying test , source files) , tries analyze 37k files instead of few need. have been able skip ~3k files adding <sonar.skip>true</sonar.skip> property pom file. however, still can't configure project run across sub-folders , print out kind of code coverage test. (is jacoco needed latest version(6.3,0)? or can code-coverage handled through configuration?).
if sonar seems analyzing many files, because had not set sonar.sources=src/main/java in sonar-project.properties file, defaults basedir , includes everything. sonarqube can't code-coverage itself, reports on coverage-reports tool jacoco. funny don't clarify these things in https://docs.sonarqube.org/display/scan/analyzing+with+sonarqube+scanner --but enough digging, can find info on site.
Comments
Post a Comment