cucumber / gherkin

A parser and compiler for the Gherkin language.
MIT License
175 stars 54 forks source link

Support asterisk as a conjuction #123

Closed qi55wyqu closed 1 year ago

qi55wyqu commented 1 year ago

The gherkin syntax supports using an asterisk instead of And (https://cucumber.io/docs/gherkin/reference/).

When I use And, the step is parsed as 'keyword': 'And ', 'keywordType': 'Conjunction'.

However when I use * the step is parsed as 'keyword': '* ', 'keywordType': 'Unknown'.

It would be great if the correct keywordType was set.

elchupanebrej commented 1 year ago

* means that it could be used by any keyword step And means that type of step is substituted from the previous step

So they have different meanings

qi55wyqu commented 1 year ago

Ah that makes sense, thank you! I think this issue can be closed then.

This difference isn't clear from the official documentation though.