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.Descriptionprivate ForkedJvmInfoprivate AggregatedSuiteStartedEventprivate List<FailureMirror> private com.google.common.eventbus.EventBusprivate ArrayDeque<AggregatedTestResultEvent> private int -
Constructor Summary
ConstructorsConstructorDescriptionAggregatingListener(com.google.common.eventbus.EventBus target, ForkedJvmInfo slave) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidDetect 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
-