Skip to content

Instantly share code, notes, and snippets.

@cedricvidal
Last active August 29, 2015 14:08
Show Gist options
  • Save cedricvidal/44f2a73c9265d656e66e to your computer and use it in GitHub Desktop.
Save cedricvidal/44f2a73c9265d656e66e to your computer and use it in GitHub Desktop.
import junit.framework.TestCase;
import org.junit.runner.RunWith;
import org.junit.runners.AllTests;
import junit.framework.TestSuite;
@RunWith(AllTests.class)
public final class MasterTester {
public static TestSuite suite() {
TestSuite suite = new TestSuite();
for (int i = 0; i < 10; i++) {
TestSuite a = new TestSuite("a" + i);
for (int j = 0; j < 3; j++) {
a.addTest(new TestCase("a" + i + "m" + j) {
@Override
protected void runTest() throws Throwable {
}
});
}
suite.addTest(a);
}
return suite;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment