Data table and Doc string are not documented as mutually exclusiveΒ #970
Description
π What did you see?
When user does something
"""
ok
"""
| a | b |
leads to
expected: #EOF, #StepLine, #TagLine, #ExamplesLine, #ScenarioLine, #RuleLine, #Comment, #Empty, got '| a | b |
β What did you expect to see?
I expect combination of Data-Table and DocString to work, because actually there is no mentions in documentation it's disallowed.
And (subjectively) not clear why it should be disallowed.
In some cases it's really useful.
π¦ Which tool/library version are you using?
I actually use cucumber for rust (third-party), and it works really good.
But I wanted to add a linter for gherkin files and encountered this issue, because the linter uses go implementation of this repo.
π¬ How could we reproduce it?
Actually it's enough to add such case to testdata
and run make acceptance
test:
When user does something
"""
ok
"""
| a | b |
π Any additional context?
The issues actually comes from antham/ghokin#124
I checked several languages from the repo, and for all of them it doesn't work. So it's rather a feature request than a bug?
This text was originally generated from a template, then edited by hand. You can modify the template here.