How to get Junit 4 to ignore a Base Test Class?

Use to @Ignore annotation. It also works on classes.
See this one:

@Ignore public class IgnoreMe {
                        @Test public void test1() { ... }
                        @Test public void test2() { ... }
                }

Also, you can annotate a class
containing test methods with @Ignore
and none of the containing tests will
be executed.

Source: JUnit JavaDoc

Leave a Comment

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