Using tags in SpecFlow
We can use tags in SpecFlow to group the scenarios. Consider below feature file.
In this feature file, we have tagged 2 scenarios with tag – sanity and one scenario is tagged with regression. After building the solution, test explorer shows these scenarios under sanity and regression tags. This is how we can group the scenarios in SpecFlow. To execute the scenarios tagged with specific name, we can just right click on the tag name in the test explorer and click on run selected tests.