2
votes

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
( sonar.exclusion=src/test/java/**/*.* sonar.test.exclusions=**/test/**/*.* ) These are the propertiesKarthik Bharadwaj
why wouldn't you want to check test files with sonar?abbath
Code Duplication is present in TestCases.So No point in fixing the code when are about to go for productionKarthik Bharadwaj
It's not clear exactly what you want to exclude tests from. Finding issues?G. Ann - SonarSource Team

1 Answers

1
votes

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