You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to set different timeouts for different test suites,
for eg: creating FastTest suite with timeout of 1s and IntegrationTest suite with timeouts of 10s
You could set the junit.jupiter.execution.timeout.default property and friends using the @ConfigurationParameter annotation on the suite. It will control the timeout used for tests that do not declare a specific timeout in the @Timeout annotation.
On the other hand, this is a bit more verbose than the proposed solution and it leaks some knowledge already encapsulated inside @Timeout. I still believe the support for @Timeout would be a good addition to test suites, but I'm happy to work with @ConfigurationParameter otherwise/until then.
Deliverables
I want to set different timeouts for different test suites,
for eg: creating FastTest suite with timeout of 1s and IntegrationTest suite with timeouts of 10s
It would be nice to support the
@Timeout
annotation for suites as well, similar to how it works for test classes (at the class level).Other class-level annotations like
@DisplayName
are already supported for test suites.The text was updated successfully, but these errors were encountered: