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

afterSuite

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

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

This method is also called after all test suites are executed. The provided descriptor will have a null parent suite.

Parameters

closure - The closure to call.