-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Events (BeforeStep, AfterStep, AfterScenario) can't access arguments #56
Comments
Hi, sorry for the delay. Tickspec does not implement integration with the unit testing framework to integrate with before steps and after steps. That is to keep it independent from the runner. The right solution for your problem is to set a See advanced features in the readme. Feel free to reopen if it is not clear or you run into any issues. |
Ah, actually I realized that I misread it. You mean the internal events that Tickspec provides. You are correct, that is a gap in functionality that should be filled in. In the meantime, you can use the above workaround. |
Any love for this issue is greatly appreciated. This is the final missing piece. |
Currently it's not possible to use shared arguments in Events like
BeforeStep
,AfterStep
,AfterScenario
(I don't think it makes sense forBeforeScenario
)For example this results in an error:
I know I can just use a mutable value instead, but then what's the point of using arguments at all? I think it would be great to be able to have the same arguments available in the events as in the step definitions.
The text was updated successfully, but these errors were encountered: