从dotCover分析中排除属性

时间:2016-10-26 10:24:36

标签: c# .net teamcity code-coverage dotcover

如何排除分析空属性,如

public string Something { get; set; }

来自dotCover分析?我应该使用什么过滤器?

1 个答案:

答案 0 :(得分:2)

如果您想从覆盖率分析中排除自动属性,dotCover 2016.2现在提供了隐藏自动属性选项,让您可以这样做。

https://www.jetbrains.com/help/dotcover/Reference_Options_dotCover_Filtering.html

使用console runner中的/ HideAutoProperties,可以在“报告”和“分析”命令中隐藏自动属性。