Skip to content

Commit

Permalink
Merge pull request #417 from radish-bdd/fix/examples-should-support-tags
Browse files Browse the repository at this point in the history
fix: examples should support tags
  • Loading branch information
fliiiix committed Jul 3, 2021
2 parents bc8b9d1 + 88ede01 commit cc52886
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions radish/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,10 @@ def _detect_scenario_type(self, line):
:returns: if a scenario of any type is present on the given line
:rtype: bool
"""
if self._detect_examples(line_strip):
self._current_state = FeatureParser.State.EXAMPLES
return True

if (
self._detect_scenario(line)
or self._detect_scenario_outline(line)
Expand Down
1 change: 1 addition & 0 deletions tests/features/tags-everywhere.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Feature: Support Tags everywhere
When I add them up
Then I expect the sum to be <z>

@examples_tag
Examples:
| x | y | z |
| 1 | 2 | 3 |
Expand Down

0 comments on commit cc52886

Please sign in to comment.