BSD Ports

devel/py-test-timeout 2.4.0 NetBSD

Py.test plugin to abort hanging tests

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
devel, python
Package size
21.6 KiB, 90.0 KiB installed

Description

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.

In the other systems

SystemPortVersion
NetBSDdevel/py-test-timeout2.4.0
OpenBSDdevel/py-test-timeout2.4.0

Install

Binary package:

pkgin install py311-test-timeout

From pkgsrc:

cd /usr/pkgsrc/devel/py-test-timeout && make install clean

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-test-timeout-2.4.0, py313-test-timeout-2.4.0, py314-test-timeout-2.4.0