-
Make sure you are importing the right
@Ignore. To be sure use@org.junit.Ignoreexplicitly. -
Double check if your test is being executed by JUnit 4, not 3. The easiest way to do this is to either change the test name so it is not prefixed by
test(now it shouldn’t be executed at all and JUnit 4 does not need this prefix anyway) or examine your test case inheritance hierarchy: it shouldn’t extend directly or indirectly fromjunit.framework.TestCase(Junit 3 requirement).