use of io.cucumber.core.options.PluginOption in project cucumber-jvm by cucumber.
the class PluginFactoryTest method instantiates_custom_string_arg_plugin.
@Test
void instantiates_custom_string_arg_plugin() {
PluginOption option = parse(WantsString.class.getName() + ":hello");
WantsString plugin = (WantsString) fc.create(option);
assertThat(plugin.arg, is(equalTo("hello")));
}
use of io.cucumber.core.options.PluginOption in project cucumber-jvm by cucumber.
the class PluginFactoryTest method instantiates_junit_plugin_with_file_arg.
@Test
void instantiates_junit_plugin_with_file_arg() {
PluginOption option = parse("junit:" + tmp.resolve("cucumber.xml"));
plugin = fc.create(option);
assertThat(plugin.getClass(), is(equalTo(JUnitFormatter.class)));
}
use of io.cucumber.core.options.PluginOption in project cucumber-jvm by cucumber.
the class PluginFactoryTest method instantiates_timeline_plugin_with_dir_arg.
@Test
void instantiates_timeline_plugin_with_dir_arg() {
PluginOption option = parse("timeline:" + tmp.toAbsolutePath());
plugin = fc.create(option);
assertThat(plugin.getClass(), is(equalTo(TimelineFormatter.class)));
}
Aggregations