ExcludeFromCodeCoverage Isn't Working in VS2012

前端 未结 2 673
孤独总比滥情好
孤独总比滥情好 2021-01-17 10:45

I have a class in my code that I don\'t want showing up in code coverage numbers. I added the [ExcludeFromCodeCoverage] attribute to the class definition like t

2条回答
  •  悲哀的现实
    2021-01-17 10:59

    I know the approved answer is good but I wanted to add that if you start your .runsettings file from the one suggested here (https://msdn.microsoft.com/en-us/library/jj159530.aspx) you will have a pretty good base to start with (including the proposed solution here).

提交回复
热议问题