Open
Description
We get an NullPointerException if we abort a test which is annotated with RepeatedIfExceptionsTest. Assume there is an JUnit5 extension to stop further test exectuions if there is some condition (see below). If the condition is met we will get a NPE in RepeatIfExceptionsExtension
line 131 because repeatableExceptions
is uninitialized.
public void beforeTestExecution(ExtensionContext context) throws Exception {
if (<some condition to stop further test exectution>) {
throw new TestAbortedException("Cancel this test");
}
}
Metadata
Metadata
Assignees
Labels
No labels