use of gherkin.formatter.Formatter in project cucumber-jvm by cucumber.
the class FormatterMissingLifecycleMethods method set_strict_on_strict_aware_formatters.
@Test
public void set_strict_on_strict_aware_formatters() throws Exception {
PluginFactory factory = mock(PluginFactory.class);
Formatter strictAwareFormatter = mock(Formatter.class, withSettings().extraInterfaces(StrictAware.class));
when(factory.create("junit:out/dir")).thenReturn(strictAwareFormatter);
RuntimeOptions options = new RuntimeOptions(new Env(), factory, asList("--strict", "--plugin", "junit:out/dir"));
options.getPlugins();
verify((StrictAware) strictAwareFormatter).setStrict(true);
}
use of gherkin.formatter.Formatter in project cucumber-jvm by cucumber.
the class JUnitReporterTest method createReporter.
private void createReporter(boolean strict, boolean allowStartedIgnored) {
Formatter formatter = mock(Formatter.class);
Reporter reporter = mock(Reporter.class);
String allowStartedIgnoredOption = allowStartedIgnored ? "--allow-started-ignored" : "--no-allow-started-ignored";
jUnitReporter = new JUnitReporter(reporter, formatter, strict, new JUnitOptions(asList(allowStartedIgnoredOption)));
}
use of gherkin.formatter.Formatter in project cucumber-jvm by cucumber.
the class TestNGCucumberRunner method finish.
public void finish() {
Formatter formatter = runtimeOptions.formatter(classLoader);
formatter.done();
formatter.close();
runtime.printSummary();
}
Aggregations