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) Events are stored and published in canonical order after the test run has completed.

    See Also:
    Event, ConcurrentEventListener
    • 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