-
-
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 possibility to opt-out from printing step attachments when scenario is not successful #1721
Conversation
Given you can attach from hooks and these are also printed: Potentially just
That sounds really good! |
@mattwynne @16sheep @artismarti any plan to go further with that one? |
@mattwynne @16sheep @artismarti do you plan to continue working on this? |
None whatsoever, from me! :) I had kinda forgotten about it, tbh. |
I'll finish implementation for that PR as it would be now difficult for a new comer to continue with this as it has been partially implemented I hope there won't be hard feelings for this!? |
None whatsoever! Thanks for finishing the work :) |
@@ -74,6 +74,13 @@ By default, cucumber works in _strict_ mode, meaning it will fail if there are p | |||
|
|||
See [Parallel](./parallel.md). | |||
|
|||
## Printing Attachments Details | |||
|
|||
Printing attachments details can be disabled with |
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.
I think this content would sit better in formatters.md
under the "Options" heading; this doc will shrink over time as we decouple config from the CLI.
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.
I have added some docs in formatters.md
.
However I think keeping the one in cli.md
could still be relevant?
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.
No problem!
@@ -74,6 +74,13 @@ By default, cucumber works in _strict_ mode, meaning it will fail if there are p | |||
|
|||
See [Parallel](./parallel.md). | |||
|
|||
## Printing Attachments Details | |||
|
|||
Printing attachments details can be disabled with |
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.
No problem!
Description
Refs. #1136
I've added a scenario to show a new
--format-options
that would let the possibility to opt-out from the attachments being printed when a scenario is not successful.That option is named
printAttachments
and is presumably true per default.New contributors, welcome!
This is an easy one, and to help you through it, you'll find all the steps to fix that PR here: /~https://github.com/cucumber/cucumber-js/blob/17527667f70c64600adf1ac924336c64b65df66e/docs/first-time-contributor-tutorial.md
Motivation & context
Fixes #1136
Type of change
Checklist: