public interface ConcurrentEventListener extends Plugin
When cucumber executes test in parallel or in a framework
that supports parallel execution (e.g. JUnit or TestNG)
TestCase
events from different
pickles may interleave.
This interface marks an EventListener
as capable of
understanding interleaved pickle events.
While running tests in parallel cucumber makes the following guarantees:
Thread.currentThread()
will return a different thread for two test cases
executed on a different thread (but not necessarily the
executing thread).Event
Modifier and Type | Method and Description |
---|---|
void |
setEventPublisher(EventPublisher publisher)
Set the event publisher.
|
void setEventPublisher(EventPublisher publisher)
publisher
- the event publisherCopyright © 2019. All rights reserved.