docs(output): Note --no-show-locals

This commit is contained in:
Tony Narlock 2022-10-14 16:37:53 -05:00
parent 3a8d401ac7
commit 7fada7127e
1 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,9 @@ Examples for modifying traceback printing:
.. code-block:: bash .. code-block:: bash
pytest --showlocals # show local variables in tracebacks pytest --showlocals # show local variables in tracebacks
pytest -l # show local variables (shortcut) pytest -l # show local variables (shortcut)
pytest --no-showlocals # hide local variables (if addopts enables them)
pytest --tb=auto # (default) 'long' tracebacks for the first and last pytest --tb=auto # (default) 'long' tracebacks for the first and last
# entry, but 'short' style for the other entries # entry, but 'short' style for the other entries