-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add new capture option, "forget", to not print to stdout when test fails #1233
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
Conversation
Hi, thanks for the initial experiment, however I think that's the wrong place Similar to how traceback formatting allows us to change display without giving up on the underlying data, So it would be possible to show all output, truncated output or no output As for the structure of the contribution, please try to squash commits into semanticall steps |
Thanks for reviewing and providing feedback. If I understand correctly, you're saying to use a flag similar to |
Correct :) |
Thanks. Closing this PR. Another PR shall be opened when I have something useful to show. |
Capture and display of output (--capture=fd) when tests fail is problematic in cases meeting these conditions:
I run tests through Jenkins and PyTest captures all output that makes reading through PyTest's own pertinent output cumbersome. Plus, since debug logs are already captured in files this output is redundant. Hence the need to add an option to "forget" capture.
This is proof of concept PR provides support for clean output while retaining everything else in logs (if they're being used).
Disclaimers: