summaryrefslogtreecommitdiff
path: root/doc/en/usage.rst
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-04-03 18:11:14 +0200
committerDaniel Hahler <git@thequod.de>2019-04-03 22:08:44 +0200
commitbefc8a3f100d68dee4e60a129c31b4597d5fe04e (patch)
treed8f01f97e039957414c6dcfdf129d9397a4b7ac6 /doc/en/usage.rst
parent5935fbaa7a60cfe9932ae980daf16a69b1edefd0 (diff)
downloadpytest-befc8a3f100d68dee4e60a129c31b4597d5fe04e.tar.gz
Update via https://github.com/pytest-dev/regendoc/pull/8
Diffstat (limited to 'doc/en/usage.rst')
-rw-r--r--doc/en/usage.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/en/usage.rst b/doc/en/usage.rst
index d69aa6c07..d6850beda 100644
--- a/doc/en/usage.rst
+++ b/doc/en/usage.rst
@@ -204,7 +204,7 @@ Example:
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
- rootdir: $REGENDOC_TMPDIR
+ rootdir: /home/sweet/project
collected 6 items
test_example.py .FEsxX [100%]
@@ -227,13 +227,13 @@ Example:
test_example.py:14: AssertionError
========================= short test summary info ==========================
- SKIPPED [1] $REGENDOC_TMPDIR/test_example.py:23: skipping this test
+ SKIPPED [1] /home/sweet/project/test_example.py:23: skipping this test
XFAIL test_example.py::test_xfail
reason: xfailing this test
XPASS test_example.py::test_xpass always xfail
ERROR test_example.py::test_error
FAILED test_example.py::test_fail
- 1 failed, 1 passed, 1 skipped, 1 xfailed, 1 xpassed, 1 error in 0.12 seconds
+ = 1 failed, 1 passed, 1 skipped, 1 xfailed, 1 xpassed, 1 error in 0.12 seconds =
The ``-r`` options accepts a number of characters after it, with ``a`` used above meaning "all except passes".
@@ -256,7 +256,7 @@ More than one character can be used, so for example to only see failed and skipp
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
- rootdir: $REGENDOC_TMPDIR
+ rootdir: /home/sweet/project
collected 6 items
test_example.py .FEsxX [100%]
@@ -280,8 +280,8 @@ More than one character can be used, so for example to only see failed and skipp
test_example.py:14: AssertionError
========================= short test summary info ==========================
FAILED test_example.py::test_fail
- SKIPPED [1] $REGENDOC_TMPDIR/test_example.py:23: skipping this test
- 1 failed, 1 passed, 1 skipped, 1 xfailed, 1 xpassed, 1 error in 0.12 seconds
+ SKIPPED [1] /home/sweet/project/test_example.py:23: skipping this test
+ = 1 failed, 1 passed, 1 skipped, 1 xfailed, 1 xpassed, 1 error in 0.12 seconds =
Using ``p`` lists the passing tests, whilst ``P`` adds an extra section "PASSES" with those tests that passed but had
captured output:
@@ -292,7 +292,7 @@ captured output:
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
- rootdir: $REGENDOC_TMPDIR
+ rootdir: /home/sweet/project
collected 6 items
test_example.py .FEsxX [100%]
@@ -320,7 +320,7 @@ captured output:
_________________________________ test_ok __________________________________
--------------------------- Captured stdout call ---------------------------
ok
- 1 failed, 1 passed, 1 skipped, 1 xfailed, 1 xpassed, 1 error in 0.12 seconds
+ = 1 failed, 1 passed, 1 skipped, 1 xfailed, 1 xpassed, 1 error in 0.12 seconds =
.. _pdb-option: