问题
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:
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.
来源:https://stackoverflow.com/questions/16014201/sonar-cobertura-custom-filters