When using ert
I'd sometimes like to have tests abort after some timeout. I could program this in advance in the test-case but this is not what I need.
Imagine a situation where I use ert-run-tests-batch
for non-regression testing after I modified something in the code. The new code may introduce a bug where, say, some test case will loop forever. This blocks the rest of the test batch and, to make matter worse, it is not easy to find out which test exactly tripped the infinite loop.
To avoid this, I'd like to be able to say something like run all selected tests but abort any that lasts more than 1 second, knowing that they usually pass very quickly. I looked in the ert manual but could not find anything relevant. Is there a hidden way that someone knows of?