aroundAll
fun TestConfig.aroundAll(executionWrappingAction: TestElementExecutionWrappingAction): TestConfig(source)
Returns a test configuration which wraps executionWrappingAction around a single test element.
executionWrappingAction wraps around the TestElement's cumulative action (a cumulative action includes all wrapping actions following this one, and the elements primary action). See TestElementExecutionWrappingAction for requirements.
The executionWrappingAction is performed only on the TestElement it is configured for. Child elements do not inherit it.
Example:
configuration = TestConfig.aroundAll { elementAction ->
withTimeout(2.seconds) {
elementAction()
}
}Content copied to clipboard