Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sonarQube Not excluding test files

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

like image 448
Karthik Bharadwaj Avatar asked Jul 06 '26 11:07

Karthik Bharadwaj


1 Answers

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

like image 70
Walter Tross Avatar answered Jul 11 '26 03:07

Walter Tross