Skip tagged scenarios in SpecFlow with Xunit
How to skip scenarios with a certain tag from executing
Last updated
How to skip scenarios with a certain tag from executing
Last updated
First apply a tag of your choosing to flag scenarios that are still not ready for running:
Now in the [Binding]
class for any of the steps in the scenario, create a constructor that receives the ScenarioContext
as follows:
That's it. Turns out that the generated test for a scenario is annotated with [SkippableFact]
so you can just skip from anywhere during the test run. From package.