summaryrefslogtreecommitdiff
path: root/doc/en/test/plugin/terminal.rst
blob: bcfe53f38b55b8e8ccbd25ff2bd27175b13ff8f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

Implements terminal reporting of the full testing process.
==========================================================


.. contents::
  :local:

This is a good source for looking at the various reporting hooks.

command line options
--------------------


``-v, --verbose``
    increase verbosity.
``-r chars``
    show extra test summary info as specified by chars (f)ailed, (s)skipped, (x)failed, (X)passed.
``-l, --showlocals``
    show locals in tracebacks (disabled by default).
``--tb=style``
    traceback print mode (long/short/line/no).
``--full-trace``
    don't cut any tracebacks (default is to cut).
``--fixtures``
    show available fixtures, sorted by plugin appearance (fixtures with leading ``_`` are only shown with '-v')

Start improving this plugin in 30 seconds
=========================================


1. Download `pytest_terminal.py`_ plugin source code
2. put it somewhere as ``pytest_terminal.py`` into your import path
3. a subsequent ``pytest`` run will use your local version

Checkout customize_, other plugins_ or `get in contact`_.

.. include:: links.txt