Last active
August 22, 2024 17:57
-
-
Save jfoshee/b61ddda48afc2220f6c6f4a98b61b07a to your computer and use it in GitHub Desktop.
Revisions
-
jfoshee revised this gist
Aug 22, 2024 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ using TechTalk.SpecFlow; using Xunit; namespace Example.SpecFlowTests.Hooks; -
jfoshee revised this gist
Aug 22, 2024 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ using TechTalk.SpecFlow; namespace Example.SpecFlowTests.Hooks; @@ -7,7 +6,7 @@ namespace Example.SpecFlowTests.Hooks; public class SkipHook { [BeforeScenario(tags: "skip")] public static void BeforeScenario() { Skip.If(true, "Scenario is tagged @skip"); } -
jfoshee created this gist
Aug 22, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #pragma warning disable CA1822 // Mark members as static using TechTalk.SpecFlow; namespace Example.SpecFlowTests.Hooks; [Binding] public class SkipHook { [BeforeScenario(tags: "skip")] public void BeforeScenario() { Skip.If(true, "Scenario is tagged @skip"); } }