use of org.junit.platform.launcher.listeners.LoggingListener in project narchy by automenta.
the class NARTestBenchmark method junit.
// @Benchmark
// @BenchmarkMode(Mode.AverageTime)
// @Fork(1)
// public void testY() {
// The.Compound.the = FastCompound.FAST_COMPOUND_BUILDER;
// // Param.SynchronousExecution_Max_CycleTime = 0.0001f;
//
// junit(testclass);
// }
static void junit(Class... testClasses) {
LauncherDiscoveryRequest request = LauncherDiscoveryRequestBuilder.request().selectors(// selectPackage("com.example.mytests"),
(ClassSelector[]) Util.map(DiscoverySelectors::selectClass, new ClassSelector[testClasses.length], testClasses)).build();
Launcher launcher = LauncherFactory.create();
// SummaryGeneratingListener listener = new SummaryGeneratingListener();
LoggingListener listener = LoggingListener.forJavaUtilLogging();
launcher.registerTestExecutionListeners(listener);
launcher.execute(request, listener);
// listener.getSummary().printTo(new PrintWriter(System.out));
}
Aggregations