-
-
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 error_message for steps that have the status pending #2393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to do this @markstein.
Can you give an example of user code that you would use and expect this new behaviour to kick in? Generally pending steps are signified with return 'pending'
(or other equivalent) so there is not an error present, although I suppose with the callback flavour it could work - is that what you had in mind?
See also https://github.com/cucumber/cucumber-js/blob/main/features/pending_steps.feature
I'm also curious as to what a "detailed error message" would be in case of pending, given it is supposed to just mean the step isn't implemented yet. |
@davidjgoss thanks for taking the time for the review. yes, we use it as a callback variant in the afterStep hook. We use the pending status partly for integration tests that are currently "unstable" due to instability in external systems. However, other sources of error could possibly arise, which would then be recognized based on the error message. Furthermore, if you look at the Java implementation (which is not necessarily relevant), but the behavior reflects: Based on json result, the error message is then displayed in the html report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, thanks again.
🤔 What's changed?
By evaluating the runs, it is sometimes helpful to see the detailed error message even for steps that are pending.
⚡️ What's your motivation?
The error message is also output for steps that have the status pending #2392
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
📋 Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.