3 ms·
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 terrib
by stult 7y ago
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!
- mtone 7y agoI 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/aded2ff636cb6dd9d428cf5800f34429 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).
- stult 7y agoHoly crap you've made my job infinitely easier. Thank you!