-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Nested rule doesn't consume all needed backgrounds #126
Comments
I'm 95% certain we test this in our acceptance tests. However you are using quite an old version (So it maybe something we've only introduced recently). I do know python is one of the versions that has slightly less usage, that might be why. |
A quick guess would be that we fixed this somewhere after the mono repo split. We haven't released the python module since. #148. |
gherkin-official 29.0 - Reproduced |
My understanding is all I would expect your sample to equate to
But I'm sure this may be something that I'm not 100% au faix with. It definitely should live in either gherkin testing as testdata golden or in the CCK proper. CCK currently has this: https://github.com/cucumber/compatibility-kit/blob/main/devkit/samples/rules/rules.feature Rule has this: https://github.com/cucumber/gherkin/blob/main/testdata/good/rule.feature Because the concept of tabbing in gherkin isn't concrete, I would say that your tabbing here a misnomer and based on the tests written above, that my understanding is probably what is happening. Can you confirm this? |
@luke-hill Thank you for your explanation. It seems that nested rules are not supported. I expected that rules could be deeply nested and that every rule would add its own background at the top of the example steps. |
Let's close this as not a bug then |
@elchupanebrej - Ironically I found a long standing issue to update the docs that would cover this situation here: cucumber/docs#561 I never got around to doing it though |
👓 What did you see?
I get next pickle:
so
Outer rule background step
is missing in the pickle✅ What did you expect to see?
All 4 steps from every level background is present in the pickle
📦 Which tool/library version are you using?
Python 3.10.9
gherkin-official 24.1.0
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: