./devel/py-test-timeout, Py.test plugin to abort hanging tests

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.2.0, Package name: py27-test-timeout-1.2.0, Maintainer: pkgsrc-users

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.


Required to run:
[lang/python27] [devel/py-test]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 6895457de75f39992af318693136fd05d2c825f7
RMD160: 3e0674c33446d700105f90fc1c7afcf252bfe932
Filesize: 12.947 KB

Version history: (Expand)


CVS history: (Expand)


   2017-11-06 14:35:03 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-test-timeout: follow redirect
   2017-10-19 08:52:03 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
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.