From c71a325a0fc0b3bdfeb1c1cda703ca41778f9487 Mon Sep 17 00:00:00 2001 From: Ziad Kermadi Date: Thu, 26 Oct 2023 19:25:35 +0200 Subject: [PATCH] Move lines to Verbosity --- doc/en/how-to/output.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/en/how-to/output.rst b/doc/en/how-to/output.rst index b9d48078b..dbe372d51 100644 --- a/doc/en/how-to/output.rst +++ b/doc/en/how-to/output.rst @@ -15,8 +15,6 @@ Examples for modifying traceback printing: pytest --showlocals # show local variables in tracebacks pytest -l # show local variables (shortcut) pytest --no-showlocals # hide local variables (if addopts enables them) - pytest --quiet # quiet - less verbose - mode - pytest -q # quiet - less verbose - mode (shortcut) pytest --capture=fd # default, capture at the file descriptor level pytest --capture=sys # capture at the sys level @@ -24,7 +22,6 @@ Examples for modifying traceback printing: pytest -s # don't capture (shortcut) pytest --capture=tee-sys # capture to logs but also output to sys level streams - pytest --tb=auto # (default) 'long' tracebacks for the first and last # entry, but 'short' style for the other entries pytest --tb=long # exhaustive, informative traceback formatting @@ -45,6 +42,13 @@ option you make sure a trace is shown. Verbosity -------------------------------------------------- +Examples for modifying printing verbosity: + +.. code-block:: bash + + pytest --quiet # quiet - less verbose - mode + pytest -q # quiet - less verbose - mode (shortcut) + The ``-v`` flag controls the verbosity of pytest output in various aspects: test session progress, assertion details when tests fail, fixtures details with ``--fixtures``, etc.