terminal: report `session.shouldfail reason (-x`)

Via https://github.com/blueyed/pytest/pull/108.
This commit is contained in:
Daniel Hahler
2019-11-13 15:55:11 +01:00
parent e2022a6d48
commit b06f33f474
5 changed files with 42 additions and 8 deletions
+2 -2
View File
@@ -66,8 +66,8 @@ To stop the testing process after the first (N) failures:
.. code-block:: bash
pytest -x # stop after first failure
pytest --maxfail=2 # stop after two failures
pytest -x # stop after first failure
pytest --maxfail=2 # stop after two failures
.. _select-tests: