api / org.gradle.api.tasks.testing / AbstractTestTask / afterTest

afterTest

open fun afterTest(closure: Closure<Any>): Unit

Adds a closure to be notified after a test has executed. A TestDescriptor and TestResult instance are passed to the closure as a parameter.

Parameters

closure - The closure to call.