Class AggregatingListener
java.lang.Object
com.carrotsearch.ant.tasks.junit4.events.aggregated.AggregatingListener
Aggregates atomic events from
JUnitCore
to higher-level events that
contain a full summary of a given test's execution. Simplifies reporting
logic.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.junit.runner.Description
private ForkedJvmInfo
private AggregatedSuiteStartedEvent
private List
<FailureMirror> private com.google.common.eventbus.EventBus
private ArrayDeque
<AggregatedTestResultEvent> private int
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatingListener
(com.google.common.eventbus.EventBus target, ForkedJvmInfo slave) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
void
Detect slow heartbeat (long time without any events) from the forked JVM.
-
Field Details
-
target
private com.google.common.eventbus.EventBus target -
slave
-
startEvent
-
lastSuite
private org.junit.runner.Description lastSuite -
suiteFailures
-
tests
-
eventStream
-
testStartStreamMarker
private int testStartStreamMarker
-
-
Constructor Details
-
AggregatingListener
- Parameters:
target
- Which event bus to repost aggregated events to?
-
-
Method Details
-
appendToEventStream
-
slowHeartBeat
Detect slow heartbeat (long time without any events) from the forked JVM. -
receiveSuiteStart
-
receiveTestStart
-
receiveTestIgnored
-
receiveTestAssumptionIgnored
-
receiveTestFailure
-
receiveTestEnd
-
receiveSuiteEnd
-
receiveSuiteFailure
-