Skip to content

Instantly share code, notes, and snippets.

@jfoshee
Last active August 22, 2024 17:57
Show Gist options
  • Save jfoshee/b61ddda48afc2220f6c6f4a98b61b07a to your computer and use it in GitHub Desktop.
Save jfoshee/b61ddda48afc2220f6c6f4a98b61b07a to your computer and use it in GitHub Desktop.
using TechTalk.SpecFlow;
using Xunit;
namespace Example.SpecFlowTests.Hooks;
[Binding]
public class SkipHook
{
[BeforeScenario(tags: "skip")]
public static void BeforeScenario()
{
Skip.If(true, "Scenario is tagged @skip");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment