Behat / Gherkin

Gherkin parser, written in PHP for Behat project
MIT License
1.05k stars 89 forks source link

Add descriptions support for the nodes: ExampleTable, Outline and Sce… #254

Open jojo1981 opened 2 years ago

jojo1981 commented 2 years ago

Now the descriptions.feature sample in CompatibilityTest will work. The code is backward compatible.

ciaranmcnulty commented 1 year ago

This looks great! How does it change the output of the pretty printer in Behat, though? As long as it's just that the descriptions are cleanly omitted I think that's fine?

stof commented 1 year ago

This might impact the pretty printer ignoring description because previously, that description would be parsed as a multi-line title (and so displayed). However, adding the rendering of the description in Behat should be easy.

jojo1981 commented 1 year ago

I didn't check that, but as this change is not backwards compatible based on functionality a new major version should be released including this feature. The Behat library can be made compatible later and use the new major version of this library.