Search in sources :

Example 1 with SuiteStartedEvent

use of com.carrotsearch.ant.tasks.junit4.events.SuiteStartedEvent in project randomizedtesting by randomizedtesting.

the class TextReport method onSuiteStart.

@Subscribe
public void onSuiteStart(AggregatedSuiteStartedEvent e) throws IOException {
    final Charset charset = e.getSlave().getCharset();
    outStream = new WriterOutputStream(outWriter, charset, DEFAULT_MAX_LINE_WIDTH, true);
    errStream = new WriterOutputStream(errWriter, charset, DEFAULT_MAX_LINE_WIDTH, true);
    if (showSuiteSummary && isPassthrough()) {
        SuiteStartedEvent evt = e.getSuiteStartedEvent();
        emitSuiteStart(evt.getDescription(), evt.getStartTimestamp());
    }
}
Also used : SuiteStartedEvent(com.carrotsearch.ant.tasks.junit4.events.SuiteStartedEvent) AggregatedSuiteStartedEvent(com.carrotsearch.ant.tasks.junit4.events.aggregated.AggregatedSuiteStartedEvent) Charset(java.nio.charset.Charset) WriterOutputStream(com.carrotsearch.randomizedtesting.WriterOutputStream) Subscribe(com.google.common.eventbus.Subscribe)

Aggregations

SuiteStartedEvent (com.carrotsearch.ant.tasks.junit4.events.SuiteStartedEvent)1 AggregatedSuiteStartedEvent (com.carrotsearch.ant.tasks.junit4.events.aggregated.AggregatedSuiteStartedEvent)1 WriterOutputStream (com.carrotsearch.randomizedtesting.WriterOutputStream)1 Subscribe (com.google.common.eventbus.Subscribe)1 Charset (java.nio.charset.Charset)1