-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 steps should query over the wire too #45
base: main
Are you sure you want to change the base?
Conversation
Copied from #1 (comment):
|
Actually it seems to work well as long as the nested step actually exist on the wire server Did I miss something @mattwynne? |
This reverts commit 14593cd. This was based on a misunderstanding: this step is implemented over the wire already, so adding a step definition for it on the ruby side just masks the problem the scenario is supposed to highlight.
I've updated the feature file to hopefully clarify the problem being outlined. Notice how the |
@mattwynne maybe now I'm back a bit more we want to start deprecating / removing the ability for people to create dynamic steps? |
Rather than removing nested steps altogether, I'd be in favour of re-architecting things so that they can be offered as a plugin. I know a lot of people use them, so I think it would be annoying to remove the behaviour altogether, but making it opt-in would communicate more clearly to novices what we consider to be good practice. I also think it would probably be healthy for Cucumber's internals if we were able to decouple the code around this stuff enough that it could be offered through and extension point. Right now that's some of the most ancient code in the whole Cucumber org, and it could probably benefit from some love. |
This turns #1 into a failing test.
It seems like when we use a nested step, the mechanism for making that dynamic query for step defs does not query over the wire.
This is a symptom of the complexity around nested steps, and not necessarily something we want to prioritise fixing.