-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 description/name option for global hooks #1079
Comments
You can see which hooks ran based on there location of definition.
Both hooks are defined in |
I know you can see that, but for users that didn't wrote the test, and for those that did too, it's far easier to have some name for the before step printed after the Before keyword while reading the output of a test, otherwise, you'll always have to look what the before steps do. With a name/description, you will not need to check each time you read the output. |
Okay. This isn't currently available but we could add it as an option alongside the timeout for all hooks |
Just calling out that this is underway via cucumber/messages#73. |
This has now been released in v8.1.0 on npm |
I searched for it, but couldn't find out how to do this, even from the source code.
So basically, we now have this kind of output:
As there can be more than 1 global (before) hook ran during a scenario, it would be handy to know which ones where run. Especially because we use tagged global hooks, so depending on the tags, some will run, others won't. If a test fails, we would like to see what has been run.
Is this available right now? And if not, can this be added?
The text was updated successfully, but these errors were encountered: