Move lines to Verbosity

This commit is contained in:
Ziad Kermadi 2023-10-26 19:25:35 +02:00
parent 55e939d513
commit c71a325a0f
1 changed files with 7 additions and 3 deletions

View File

@ -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.