aroundAll
Registers an executionWrappingAction which wraps the execution actions of this test suite.
executionWrappingAction wraps around the TestElement's primary testSuiteAction, which accumulates the execution actions of its children. The wrapping action will be invoked only if at least one (direct or indirect) child Test executes. See also TestElementExecutionWrappingAction for requirements.
Note: TestSuite.aroundAll will not wrap around fixtures registered in its TestSuite. Fixtures (which are lazily created on their first invocation) will close after any aroundAll actions registered in their TestSuite. Use the suite's testConfig parameter with TestConfig.aroundAll to register an action which also wraps around the suite's fixtures.
Usage:
aroundAll { testSuiteAction ->
withContext(CoroutineName("parent coroutine configured by aroundAll")) {
testSuiteAction()
}
}Content copied to clipboard