unoplatform / Uno.CodeGen

A set of source generators for equality, immutability, ...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Annotate generated methods/operators with [ExcludeFromCodeCoverage]

dahlia opened this issue · 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.

The generated attributes should be configureable.