We're using t4mvc in our project which requires min 85% coverage
since adding in t4mvc our coverage has bombed! I don't see the point in testing generated code - is there a way to ommit this stuff from our coverage?
we're using xunit fwiw
We're using t4mvc in our project which requires min 85% coverage
since adding in t4mvc our coverage has bombed! I don't see the point in testing generated code - is there a way to ommit this stuff from our coverage?
we're using xunit fwiw
exactly as I was going to say G_P re your comment. the way to approach this is to add the DebuggerNonUserCode
attribute, either at class level or at method level.
[DebuggerNonUserCode]
public partial class MyClass
{
[DebuggerNonUserCode]
public string SomeMethod
{
}
public bool Anothermethod
{
}
}
see also:
should get you started...