[TIP] aborting tests that take too long
fuzzyman at voidspace.org.uk
Thu Nov 10 17:46:40 PST 2011
regrtest (from the Python test suite) on Python head has some interesting (and newish) code for aborting tests that take too long. May be worth taking a look at.
On 10 Nov 2011, at 15:28, Mark Sienkiewicz wrote:
> I have a general problem with tests that deadlock, go into an infinite loop, or otherwise just run for way too long. I need to do something about this because it is starting to become a problem in my CI system.
> When a test takes too long, I don't just want the test to fail if it takes too long -- I want it to be forced to stop running. Is there some way to do this in py.test or nose?
> Mark S.
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing
More information about the testing-in-python