Exclusion Reason

Exclusion Reason

Just as suggested I use //ea CoverageExcludeAttribute Since there are might be many reasons to exclude from code coverage metric. I have added a dummy argument (enum) to the CoverageExcludeAttribute, so the usage is as follows:

[CoverageExclude(Reason.Delegate)] private MyService CreateWebServiceProxy() { return new WebServiceProxy(); }

Suggestion: I would like to see the reason on the coverage report and be able to have a metric on the reasons (how many Reason.Delegate and Reason.HumbleView there are).


RE: Exclusion Reason

Thank you for the feature request. I have entered it into our tracking system. If you have the time, it would help us a lot to know why you want to see the reason something was excluded.