Tag demonstrator
Tags: @allAboutTags, @important
In order to show the capabilities of tags in SpecFlow
As a SpecFlow evanglist
I want to write scenarios that has tags and show their usage in code
-
Ignored scenario
Tags: @allAboutTags, @ignore, @important
-
Given that my scenario has the @ignore tag
-
When I run the scenario
-
Then the scenario is ignored
-
And the missing step definitions are not reported
-
-
Given that my scenario has 0 tags
-
When I run the scenario
-
Then before scenario hook with '' is run
-
A scenario with 1 tag
Tags: @allAboutTags, @important, @testTag1
-
Given that my scenario has 1 tags
-
When I run the scenario
-
Then before scenario hook with 'testTag1' is run
-
-
Given that my scenario has 3 tags
-
When I run the scenario
-
Then before scenario hook with 'testTag1, testTag2, testTag3' is run
-
-
Given that my scenario has 2 tags
-
When I run the scenario
-
Then before scenario hook with 'testTag1, testTag3' is run