open fun beforeTest(closure: Closure<Any>): Unit
Adds a closure to be notified before a test is executed. A TestDescriptor instance is passed to the closure as a parameter.
closure - The closure to call.
closure