From 55e939d51393188cea9e3a0c585bead9914f8449 Mon Sep 17 00:00:00 2001 From: Ziad Kermadi Date: Thu, 26 Oct 2023 17:38:54 +0200 Subject: [PATCH] fix issue #11507 - part2 --- doc/en/how-to/output.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/en/how-to/output.rst b/doc/en/how-to/output.rst index fdb69693e..b9d48078b 100644 --- a/doc/en/how-to/output.rst +++ b/doc/en/how-to/output.rst @@ -18,6 +18,13 @@ Examples for modifying traceback printing: 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 + pytest --capture=no # don't capture + 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