# afterSuite

open fun afterSuite(closure: Closure)(source)

### Deprecated

Replace with addTestListener and a TestListener.

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.