我希望使用[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 }}
添加回答
举报
0/150
提交
取消