import org.junit.runner.notification.Failure; import org.junit.runner.JUnitCore; import org.junit.runner.notification.RunListener; public final class RunTests { public static class FailurePrinter extends RunListener { public void testFailure (Failure f) { System.err.println(f.getTestHeader() + " FAILED: " + f.getException()); } } public static void main(String[] args) { JUnitCore core = new JUnitCore(); core.addListener(new FailurePrinter()); // List each test class you want to run here, followed by .class core.run(Fixtures.class); System.out.println("All tests done; any failures are reported above."); } }