Code Coverage - Exclude methods from review

  • SonarQueb Developer Edition Version 10.2.1 (build 78527)
  • NET8
  • C#
  • dotnet test coverage

Hello community

I’m wanting to get code coverage of the C# code, but I find myself with a method name that I don’t want to consider.

That is, those methods that contain methodName as a name are not considered for Code Coverage

It can be done by?:

*B. Code Coverage Exclusions
Configure the files that should be ignored by code coverage calculations.

Thank you!


Coverage exclusions can only be set as low as the file level, not within files.


Gracia Ann.