Skip to content

Instantly share code, notes, and snippets.

@Bambina-zz
Created October 19, 2017 11:18
Show Gist options
  • Save Bambina-zz/2ac4a465bf7c06973f128c019973f26c to your computer and use it in GitHub Desktop.
Save Bambina-zz/2ac4a465bf7c06973f128c019973f26c to your computer and use it in GitHub Desktop.
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
public class TestRunner {
public static void main(String[] args) {
Result result = JUnitCore.runClasses(PermTest.class);
for (Failure failure : result.getFailures()) {
System.out.println(failure.toString());
}
System.out.println(result.wasSuccessful());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment