pytest to be completely quiet when asked #13224
Labels
topic: reporting
related to terminal output and user-facing messages and errors
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
What's the problem this feature will solve?
There currently seems to be no easy way to make pytest not produce any output when all tests pass.
pytest --quiet --quiet ...
fails to do what seems to be the most expected thing -- be quiet, still printing dots and progress information:-o console_output_style=none
silences the progress and the dots can be dealt with with apytest_report_teststatus()
hook, but:none
only works because it's not one of the officially supported values forconsole_output_style
and the code doesn't bother raising an error,The new line character seems to come from
pytest_sessionfinish()
:Describe the solution you'd like
I would expect pytest to support a command-line option or a set of options that together would make it not produce any output unless a test is failed.
Something like:
Alternative Solutions
Running
chronic pytest ...
helps, but prevents colour output.Additional context
None.
The text was updated successfully, but these errors were encountered: