Skip to content

Timeout for test class that executes before/after on the same thread as test #4322

@Nikita-Guchakov

Description

@Nikita-Guchakov

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions