Skip to content

Introduce global timeouts for tests #80

@arcuri82

Description

@arcuri82

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions