Karthik Bharadwaj
Karthik Bharadwaj

Reputation: 444

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

Upvotes: 3

Views: 8676

Answers (1)

Walter Tross
Walter Tross

Reputation: 12654

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

Upvotes: 2

Related Questions