-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Milestone
Description
Feature Request
Currently, in JUnit 4 it is not possible to have global timeouts for the tests. The Timeout rule does not guarantee that any @After method will be called. See
junit-team/junit4#1231 (comment)
and the recently updated
https://github.com/junit-team/junit/wiki/Timeout-for-tests
It would be good to have a global timeout in JUnit Jupiter. Even better, it would be great if it would be possible to set different global timeouts for @BeforeEach @Test, and @AfterEach, which could be overridden (if needed) directly in the test files via annotations.
Related Issues
michelschinz, staffanf, Snipx, caduandrade, jirkadanek and 28 morecalvertdwjirkadanek, quiram, pltanton, theoilie, Ortner and 3 more