@@ -16,6 +16,12 @@ Examples for modifying traceback printing:
16
16
pytest -l # show local variables (shortcut)
17
17
pytest --no-showlocals # hide local variables (if addopts enables them)
18
18
19
+ pytest --capture=fd # default, capture at the file descriptor level
20
+ pytest --capture=sys # capture at the sys level
21
+ pytest --capture=no # don't capture
22
+ pytest -s # don't capture (shortcut)
23
+ pytest --capture=tee-sys # capture to logs but also output to sys level streams
24
+
19
25
pytest --tb=auto # (default) 'long' tracebacks for the first and last
20
26
# entry, but 'short' style for the other entries
21
27
pytest --tb=long # exhaustive, informative traceback formatting
@@ -36,6 +42,16 @@ option you make sure a trace is shown.
36
42
Verbosity
37
43
--------------------------------------------------
38
44
45
+ Examples for modifying printing verbosity:
46
+
47
+ .. code-block :: bash
48
+
49
+ pytest --quiet # quiet - less verbose - mode
50
+ pytest -q # quiet - less verbose - mode (shortcut)
51
+ pytest -v # increase verbosity, display individual test names
52
+ pytest -vv # more verbose, display more details from the test output
53
+ pytest -vvv # not a standard , but may be used for even more detail in certain setups
54
+
39
55
The ``-v `` flag controls the verbosity of pytest output in various aspects: test session progress, assertion
40
56
details when tests fail, fixtures details with ``--fixtures ``, etc.
41
57
0 commit comments