Package io.cucumber.plugin
Interface EventListener
-
- All Superinterfaces:
Plugin
@API(status=STABLE) public interface EventListener extends Plugin
Listens to pickle execution events. Can be used to implement reporters.When cucumber executes test in parallel or in a framework that supports parallel execution (e.g. JUnit or TestNG)
Event
s are stored and published in canonical order after the test run has completed.- See Also:
Event
,ConcurrentEventListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setEventPublisher(EventPublisher publisher)
Set the event publisher.
-
-
-
Method Detail
-
setEventPublisher
void setEventPublisher(EventPublisher publisher)
Set the event publisher. The plugin can register event listeners with the publisher.- Parameters:
publisher
- the event publisher
-
-