Search in sources :

Example 1 with OperationFinishEvent

use of org.gradle.internal.operations.OperationFinishEvent in project gradle by gradle.

the class TestListenerBuildOperationAdapter method completed.

@Override
public void completed(TestDescriptorInternal testDescriptor, TestResult testResult, TestCompleteEvent completeEvent) {
    long currentTime = clock.getCurrentTime();
    InProgressExecuteTestBuildOperation runningOp = runningTests.remove(testDescriptor);
    listener.finished(runningOp.descriptor, new OperationFinishEvent(runningOp.startTime, currentTime, testResult.getException(), new Result(testResult)));
}
Also used : OperationFinishEvent(org.gradle.internal.operations.OperationFinishEvent) TestResult(org.gradle.api.tasks.testing.TestResult)

Aggregations

TestResult (org.gradle.api.tasks.testing.TestResult)1 OperationFinishEvent (org.gradle.internal.operations.OperationFinishEvent)1