0
votes

I am using sonar in my project through sonar-maven plugin . I am using Cobertura plugin for code coverage analysis. I want to exclude some modules/classes from code coverage report.

How can I do it? Thanks in advance.

1
This answer might help you: stackoverflow.com/a/7760960/1377224 you may simply add for the fileset to test an exlude list. - philnate

1 Answers

1
votes

You can use the sonar.coverage.exclusions to not report coverage of some files of your project.

You can find this property in the project settings, in the "Exclusions > Code Coverage" category.

enter image description here