diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2019-06-12 18:49:51 -0300 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2019-06-21 21:02:24 -0300 |
commit | a37b902afea21621639b114f087e84f70fb057ba (patch) | |
tree | 5778c99740fabaa8731d225c56d05dcb14939746 /doc | |
parent | e3dcf1f39df1e8bdb1a904a818bc95d22000731d (diff) | |
download | pytest-a37b902afea21621639b114f087e84f70fb057ba.tar.gz |
Integrate pytest-faulthandler into the core
* Add pytest-faulthandler files unchanged
* Adapt imports and tests
* Add code to skip registration of the external `pytest_faulthandler`
to avoid conflicts
Fix #5440
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/usage.rst | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/en/usage.rst b/doc/en/usage.rst index acf736f21..c1332706f 100644 --- a/doc/en/usage.rst +++ b/doc/en/usage.rst @@ -408,7 +408,6 @@ Pytest supports the use of ``breakpoint()`` with the following behaviours: Profiling test execution duration ------------------------------------- -.. versionadded: 2.2 To get a list of the slowest 10 test durations: @@ -418,6 +417,24 @@ To get a list of the slowest 10 test durations: By default, pytest will not show test durations that are too small (<0.01s) unless ``-vv`` is passed on the command-line. + +.. _faulthandler: + +Fault Handler +------------- + +.. versionadded:: 5.0 + +The `faulthandler <https://docs.python.org/3/library/faulthandler.html>`__ standard module +can be used to dump Python tracebacks on a segfault or after a timeout. + +The module is automatically enabled for pytest runs, unless the ``--no-faulthandler`` is given +on the command-line. + +Also the ``--faulthandler-timeout=X`` can be used to dump the traceback of all threads if a test +takes longer than ``X`` seconds to finish (not available on Windows). + + Creating JUnitXML format files ---------------------------------------------------- |