sonarQube Not excluding test files

2019-07-15 03:34发布

问题:

I have added

sonar.exclusion=src/test/java/**/*.*
sonar.test.exclusions=**/test/**/*.*                                      

properties into the sonar-project.properties file. But it is not excluding the test files when creating sonarQube code coverage document. I am using jenkins as building tool

回答1:

According to the manual it should be sonar.exclusions, not sonar.exclusion.