-
Notifications
You must be signed in to change notification settings - Fork 255
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
Before-Step hook not invoked for multisteps #486
Comments
@vearutop I would like to contribute a fix for this, but I'm not sure how best to approach this. Do you have any hints? |
I was briefly looking at this issue today in the morning and can confirm it exists. Here is where BeforeStep is invoked Line 136 in b2672bb
And here are multisteps are being invoked: Line 354 in b2672bb
I think implementation strategy could be to change |
This demonstrates the bug reported in #486
This demonstrates the bug reported in #486
I have a before-Step hook to replace variables in steps. You can use it do things like this:
Normally variables are set by other steps, and they provide a convenient way to pass some context around between API calls. One use case is to test an API where I need to create a parent and a child object. I can do that using variables like so:
Doing this many times becomes tedious, especially when you need to go down more levels. To solve that I want to leverage a multistep:
so I can just start my tests like this:
This is failing, because my
StepContext.Before
is never invoked for steps returned by a multistep.📦 Which tool/library version are you using?
godog v0.12.4
The text was updated successfully, but these errors were encountered: