Skip to content

Commit

Permalink
Merge pull request #1549 from cucumber/bugfix/enable_tagged_rules
Browse files Browse the repository at this point in the history
Update rule feature to test using tags
  • Loading branch information
luke-hill authored Jul 9, 2021
2 parents 064491a + dc9bf5d commit d88d9a7
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions features/docs/gherkin/rule.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Feature: Rule
Feature: Rule Sample
Rule: This is a rule
Example: First example
Given some context
When I do an action
Expand All @@ -20,9 +19,9 @@ Feature: Rule
When I do another action
Then some other results should be there
Rule: This is a second rule
Example: First example
@rule2_tag
Rule: This is a second rule with a tag
Example: Third example
Given some other context
When I do another action
Then some results should be there
Expand All @@ -38,7 +37,6 @@ Feature: Rule
"""


Rule: I use Gherkin 6+
Example: I can use the Rule keyword
When I run `cucumber -q features/rule.feature`
Expand All @@ -56,11 +54,27 @@ Feature: Rule
When I do another action
Then some other results should be there
Example: First example
Example: Third example
Given some other context
When I do another action
Then some results should be there
3 scenarios (3 passed)
9 steps (9 passed)
"""

Rule: Filtering
Example: I can filter on tagged rules using the CLI
When I run `cucumber -q -t @rule2_tag`
Then it should pass with exactly:
"""
Feature: Rule Sample
Example: Third example
Given some other context
When I do another action
Then some results should be there
1 scenario (1 passed)
3 steps (3 passed)
"""

0 comments on commit d88d9a7

Please sign in to comment.