我希望使用[BeforeFeature] SpecFlow Hook拦截测试,并忽略整个功能文件。
private static string FeatureName = FeatureContext.Current.FeatureInfo.Title;
[BeforeFeature]
public static void BeforeFeature()
{
Console.WriteLine("Before feature");
if (TestFilter.ShouldBeIgnored(FeatureName))
{
// Ignore Feature if it matches TestFilter Requirements
}
}
凤凰求蛊
相关分类