Ivan CLOVIS Canet
04/20/2025, 3:36 PMtest {
onOutput { descriptor, event ->
if (event.destination == TestOutputEvent.Destination.StdErr) {
logger.error("Test: " + descriptor + ", error: " + event.message)
}
}
}
I'm struggling on onOuput
. I guess it's something like
onOutput(closureOf<???> {})
but I don't know what the type is.Christian Grach
04/20/2025, 4:01 PMclosureOf
does not work here. as you can see in the function documentation, the receiver gets 2 paramters.
so you need something likeChristian Grach
04/20/2025, 4:01 PMonOutput(KotlinClosure2<TestDescriptor, TestOutputEvent, Unit>({ description, event -> Unit }))
Christian Grach
04/20/2025, 4:02 PMAdam
04/20/2025, 4:31 PMIvan CLOVIS Canet
04/21/2025, 1:05 PM