I'm using JUnit 5 with IntelliJ IDEA Community Edition version 2018.
My code is simple:
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class CalculatorTest {
@Disabled
@Test
void addTwoZeroNumerators(){
int[] resultExpected = {0,0};
assertArrayEquals(resultExpected, Calculator.calculate(0,0,0,1));
}
I use @Disabled
. But when I run the test, the Event log still report 1 test passed. Can someone tell me what's wrong with this? I want the system to Ignore this test.
Here is the caption of the log section: