Re:C# Pattern Matching
by stult on Wednesday February 05, 2020 @12:12AM
(#22244221)
My only complaint is I can’t ignore auto-gen’d code like EF migrations in dotCover, so my unit test coverage looks terrible. It doesn’t help that I write terrible unit tests, but still!
[ Parent
| on HN ]
I run a little powershell script on build that adds the [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] attribute to generated classes in certain folders.
https://gist.github.com/mtone/aded2ff636cb6dd9d428cf5800f344...
Funnily, I have no clue how to setup a build script in Rider, did that in VS (Rider do run it).