beforeTest

open fun beforeTest(closure: Closure)

Deprecated

Replace with addTestListener and a TestListener.

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.