Open
Description
Hi!
We have flakily hanging tests, it happens rarely, mostly at CI, so it's hard to investigate which one test hangs.
I tried to deal with it by adding global timeouts, but it seems that it stuck uninterruptibly, SEPARATE_THREAD mode is not the solution, because some tests relies on thread locals, that were set up at lifecycle methods.
Another problem that developers may forget to clean threadlocals state (which maybe hidden deep in the business code) and then we have tests that broke each other.
It will be nice to have an option to run all test case methods with a single isolated thread, with timeout support as well.
Thanks