What can cause JUnit to disregard @Ignore annotations?

  1. Make sure you are importing the right @Ignore. To be sure use @org.junit.Ignore explicitly.

  2. 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 from junit.framework.TestCase (Junit 3 requirement).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)