use of org.junit.platform.launcher.Launcher in project Mindroid.java by Himmele.
the class Main method main.
public static void main(String[] args) {
LogManager.getLogManager().getLogger(Logger.GLOBAL_LOGGER_NAME).setLevel(Level.INFO);
LauncherDiscoveryRequest request = LauncherDiscoveryRequestBuilder.request().selectors(selectPackage("mindroid.tests")).filters(includeClassNamePatterns(".*")).build();
Launcher launcher = LauncherFactory.create();
TestExecutionListener listener = LoggingListener.forJavaUtilLogging(Level.INFO);
launcher.registerTestExecutionListeners(listener);
launcher.execute(request);
System.exit(0);
}
Aggregations