You can extend the Suite class, override
public Suite(Class klass, RunnerBuilder builder) throws InitializationError { this(builder, klass, getAnnotatedClasses(klass)); }
but instead of annotated classes, the desired classes are returned. I bet there are many ways to do this, but Id scans the classpath for the class folder, find all the test classes inside and ignore the ones you don't like. Class.forName will turn names into classes.
You can even make jUnit4 annotation
@RunWith(IgnoreSuite.class) @IgnoreTests("integration") public class NormalTests { }
IAdapter
source share