Uno.CodeGen icon indicating copy to clipboard operation
Uno.CodeGen copied to clipboard

Annotate generated methods/operators with [ExcludeFromCodeCoverage]

Open dahlia opened this issue 7 years ago • 1 comments

I'm submitting a…

  • Feature request

Current behavior

Methods generated by Uno.CodeGen usually do not have unit tests, but it makes code coverage reports find them not covered.

Expected behavior

It would be good if generated code are excluded by code coverage reports. FYI several coverage tools are aware of ExcludeFromCodeCoverageAttribute.

Minimal reproduction of the problem with instructions

It can be reproduced by running coverage tools like dotCover or OpenCover.

dahlia avatar Feb 13 '19 13:02 dahlia

The generated attributes should be configureable.

carldebilly avatar Oct 09 '19 20:10 carldebilly