TestDescriptionHolder

object TestDescriptionHolder : TestRule

A TestRule that holds onto the test Description in a thread local while evaluating, making it possible to retrieve that test Description from the test thread via testDescription.

This rule is automatically applied by DetectLeaksAfterTestSuccess.

Functions

Link copied to clipboard
open override fun apply(base: Statement, description: Description): Statement
Link copied to clipboard
fun isEvaluating(): Boolean
Link copied to clipboard
fun wrap(base: Statement, description: Description): Statement

Properties

Link copied to clipboard
val testDescription: Description