beforeTest

open fun beforeTest(closure: Closure)(source)

Adds a closure to be notified before a test is executed. A TestDescriptor instance is passed to the closure as a parameter.

Parameters

closure

The closure to call.