Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jojo1981
Copy link

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

@ciaranmcnulty
Copy link
Contributor

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?

@@ -437,6 +438,7 @@ protected function parseOutline()
$token = $this->expectTokenType('Outline');

$title = trim($token['value'] ?? '');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing the trimming for scenario but not for outline ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought to make it compatible with the CompatibilityTest for the descriptions.feature.
I now see this is NOT the case. I will fix this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted the trim scenario title functionality.

@stof
Copy link
Member

stof commented Sep 13, 2022

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants