Created
October 19, 2017 11:18
-
-
Save Bambina-zz/2ac4a465bf7c06973f128c019973f26c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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