TestElementExecutionWrappingAction

typealias TestElementExecutionWrappingAction = suspend TestElement.(elementAction: suspend TestElement.() -> Unit) -> Unit(source)

An action wrapping a TestElement's execution.

elementAction can be the element's primary action, or a cumulative action, which includes wrapping actions, plus the elements primary action.

Requirements:

Requirements for TestElements of type Test:

Requirements for TestElements of types other than Test:

  • If elementAction throws, it is considered a failure of the test framework.

  • TestElementExecutionWrappingAction should not throw to indicate a failing test or to block further tests from executing.