属性过滤器语法中的TeamCity

属性过滤器语法中的TeamCity

本文介绍了属性过滤器语法中的TeamCity code覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道的语法,但不包括code从覆盖的TeamCity?我使用的某些方法ExcludeFrom codeCoverageAttribute,并希望那些被排除。它的工作原理以及在Visual Studio中,但我不知道如何得到的TeamCity相同的行为。我想配置现场位于MSTEST - >净报道 - >属性过滤器:我曾尝试这样的:

   - :ExcludeFrom codeCoverageAttribute
 

   - :ExcludeFrom codeCoverage
 

解决方案

在尝试了一些变化这工作:

   - :System.Diagnostics程序codeAnalysis.ExcludeFrom codeCoverageAttribute
 

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

这篇关于属性过滤器语法中的TeamCity code覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 02:10