Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Data table and Doc string are not documented as mutually exclusiveΒ #970

Open
@DDtKey

Description

@DDtKey

πŸ‘“ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions