Search in sources :

Example 1 with CaptureTestOutputTestResultProcessor

use of org.gradle.api.internal.tasks.testing.processors.CaptureTestOutputTestResultProcessor in project gradle by gradle.

the class SuiteTestClassProcessor method startProcessing.

@Override
public void startProcessing(TestResultProcessor testResultProcessor) {
    try {
        resultProcessor = new AttachParentTestResultProcessor(new CaptureTestOutputTestResultProcessor(testResultProcessor, new JULRedirector()));
        resultProcessor.started(suiteDescriptor, new TestStartEvent(timeProvider.getCurrentTime()));
        processor.startProcessing(resultProcessor);
    } catch (Throwable t) {
        resultProcessor.failure(suiteDescriptor.getId(), new TestSuiteExecutionException(String.format("Could not start %s.", suiteDescriptor), t));
    }
}
Also used : CaptureTestOutputTestResultProcessor(org.gradle.api.internal.tasks.testing.processors.CaptureTestOutputTestResultProcessor) AttachParentTestResultProcessor(org.gradle.api.internal.tasks.testing.results.AttachParentTestResultProcessor)

Aggregations

CaptureTestOutputTestResultProcessor (org.gradle.api.internal.tasks.testing.processors.CaptureTestOutputTestResultProcessor)1 AttachParentTestResultProcessor (org.gradle.api.internal.tasks.testing.results.AttachParentTestResultProcessor)1