I'm writing an android JUnit5 test, and have a scenario where I need to mark a @Test
as "Error" instead of "Failure", I'm wondering if that is possible.
I was using gradle
to run the test, ./gradlew cDAT
.
For instance, the following code is expected to show as error, but instead it shows failure anyway:
@Test
void test03() {
throw new ArithmeticException();
}
Any help is appreciated!