문제

Anyone knows the syntax for excluding code from coverage in Teamcity? I am using the ExcludeFromCodeCoverageAttribute on certain methods and want those excluded. It works well in Visual Studio but I don't understand how to get the same behavior in TeamCity. The Field I am trying to configure is located in MsTest -> .Net Coverage -> Attribute Filters: I have tried this:

-:ExcludeFromCodeCoverageAttribute 

and this

-:ExcludeFromCodeCoverage
도움이 되었습니까?

해결책

After trying out a few variations this worked:

-:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute

다른 팁

Make sure you add this filter inside Attribute Filter:

-:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top