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'd like to stop retry when same exceptions will be occurred with exactly same error-message.
Because I think the flaky tests should retry but the broken tests should not retry.
example 1
@DisplayName("retry should be stop at Repetition 2 of 3")
@RepeatedIfExceptionsTest(repeats = 3,maxExceptions = 2)
publicvoidreRunTestStopRetryIfSameExceptions2() {
thrownewRuntimeException("same error message");
}
example 2
@DisplayName("fail at Repetition 4 of 4(retry will not be stopped)")
@RepeatedIfExceptionsTest(repeats = 4,maxExceptions = 2)
publicvoidreRunTestStopRetryIfSameExceptions3() {
thrownewRuntimeException("dynamic error message: " + random.nextInt());
}
The text was updated successfully, but these errors were encountered:
Hi, thank you for the great feature.
I'd like to stop retry when same exceptions will be occurred with exactly same error-message.
Because I think the flaky tests should retry but the broken tests should not retry.
example 1
example 2
The text was updated successfully, but these errors were encountered: