Skip to content

Commit d88d9a7

Browse files
authored
Merge pull request #1549 from cucumber/bugfix/enable_tagged_rules
Update rule feature to test using tags
2 parents 064491a + dc9bf5d commit d88d9a7

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

features/docs/gherkin/rule.feature

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Feature: Rule
99
Feature: Rule Sample
1010
1111
Rule: This is a rule
12-
1312
Example: First example
1413
Given some context
1514
When I do an action
@@ -20,9 +19,9 @@ Feature: Rule
2019
When I do another action
2120
Then some other results should be there
2221
23-
Rule: This is a second rule
24-
25-
Example: First example
22+
@rule2_tag
23+
Rule: This is a second rule with a tag
24+
Example: Third example
2625
Given some other context
2726
When I do another action
2827
Then some results should be there
@@ -38,7 +37,6 @@ Feature: Rule
3837
3938
"""
4039

41-
4240
Rule: I use Gherkin 6+
4341
Example: I can use the Rule keyword
4442
When I run `cucumber -q features/rule.feature`
@@ -56,11 +54,27 @@ Feature: Rule
5654
When I do another action
5755
Then some other results should be there
5856
59-
Example: First example
57+
Example: Third example
6058
Given some other context
6159
When I do another action
6260
Then some results should be there
6361
6462
3 scenarios (3 passed)
6563
9 steps (9 passed)
6664
"""
65+
66+
Rule: Filtering
67+
Example: I can filter on tagged rules using the CLI
68+
When I run `cucumber -q -t @rule2_tag`
69+
Then it should pass with exactly:
70+
"""
71+
Feature: Rule Sample
72+
73+
Example: Third example
74+
Given some other context
75+
When I do another action
76+
Then some results should be there
77+
78+
1 scenario (1 passed)
79+
3 steps (3 passed)
80+
"""

0 commit comments

Comments
 (0)