api / org.gradle.api.tasks.testing / TestOutputListener / onOutput

onOutput

abstract fun onOutput(testDescriptor: TestDescriptor, outputEvent: TestOutputEvent): Unit

Fired when during test execution anything is printed to standard output or error

Parameters

testDescriptor - describes the test

outputEvent - the event that contains the output message and the destination (standard output or error, etc.)