minicover icon indicating copy to clipboard operation
minicover copied to clipboard

Exclude auto properties and/or generated code for closures/linq

Open martinmueller4voice opened this issue 4 years ago • 1 comments

Could you please add a way to exclude certain patterns from coverage? For example, auto properties don't have to be covered to see if they work and automatically generated classes or methods from closures or linq queries pollute the instrumentation. I think a rather simple regex filter could be sufficient (similar to what the .runsettings file provides for VS code coverage).

martinmueller4voice avatar Oct 20 '20 07:10 martinmueller4voice

If this is done, it should be able to disable it.

Pruner (https://github.com/pruner/cli) needs as much coverage information as possible, even for simple auto properties.

ffMathy avatar Oct 29 '21 04:10 ffMathy