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 step hooks #162
Comments
It's not documented (yet) but available: module.exports = function () {
this.BeforeStep(function (step, callback) {
console.log(step);
callback();
});
}; See https://github.com/cucumber/cucumber-js/blob/master/lib/cucumber/listener/events.js for a list of all available hooks. |
TY kind sir! |
Does this still work? I also see this issue #997 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to port a test suite from specflow to cucumber.js, and have found the hooking of steps very useful for snapshotting state changes which take place in the when block. This would be a really nice feature to have in cucumber.js.
https://github.com/techtalk/SpecFlow/wiki/Hooks
Cucumber has this feature as well:
https://github.com/cucumber/cucumber/wiki/Hooks
The text was updated successfully, but these errors were encountered: