[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#779417: ITP: python-pytest-timeout -- pytest plugin to abort hanging tests



Package: wnpp
Severity: wishlist
Owner: "gustavo panizzo (gfa)" <gfa@zumbi.com.ar>

* Package name    : python-pytest-timeout
  Version         : 0.4.0
  Upstream Author : Floris Bruynooghe <flub@devork.be>
* URL             : http://bitbucket.org/flub/pytest-timeout/
* License         : MIT
  Programming Lang: Python
  Description     : pytest plugin to abort hanging tests.

This is a plugin which will terminate tests after a certain timeout.
When doing so it will show a stack dump of all threads running at the
time. This is useful when running tests under a continuous integration
server or simply if you don’t know why the test suite hangs.

Note that while by default on POSIX systems py.test will continue to
execute the tests after a test has timed, out this is not always
possible. Often the only sure way to interrupt a hanging test is by
terminating the entire process. As this is a hard termination
(os._exit()) it will result in no teardown, JUnit XML output etc. But
the plugin will ensure you will have the debugging output on stderr
nevertheless, which is the most important part at this stage. See below
for detailed information on the timeout methods and their side-effects.

The pytest-timeout plugin has been tested on python 2.6 or higher,
including 3.X and pypy.


this package is a build-dependency of python-watchdog 0.8, i will need
an sponsor (but i think i have one ;).


Reply to: