use of org.junit.platform.launcher.listeners.SummaryGeneratingListener in project junit5 by junit-team.
the class LauncherConfigurationParametersTests method getValueInExtensionContext.
@Test
void getValueInExtensionContext() {
LauncherDiscoveryRequest request = //
LauncherDiscoveryRequestBuilder.request().configurationParameter("thing", //
"one else!").selectors(DiscoverySelectors.selectClass(Something.class)).build();
SummaryGeneratingListener summary = new SummaryGeneratingListener();
LauncherFactory.create().execute(request, summary);
assertEquals(0, summary.getSummary().getTestsFailedCount());
}
Aggregations