Package io.cucumber.plugin
Interface Plugin
- All Known Subinterfaces:
ColorAware
,ConcurrentEventListener
,EventListener
,StrictAware
,SummaryPrinter
@API(status=STABLE)
public interface Plugin
Marker interface for all plugins.
A plugin can be added to the runtime to listen in on step definition, summary printing and test execution.
Plugins are added to the runtime from the command line or by annotating a
runner class with @CucumberOptions
and may be provided with a
parameter using this syntax com.example.MyPlugin:path/to/output.json
.
To accept this parameter the plugin must have a public constructor that
accepts one of the following arguments:
To make the parameter optional the plugin must also have a public default constructor.
Plugins may also implement one of these interfaces: