testScope

fun TestConfig.testScope(isEnabled: Boolean, timeout: Duration = 60.seconds): TestConfig(source)

Returns a test configuration which enables/disables a kotlinx.coroutines.test.TestScope for a TestElement hierarchy.

If isEnabled is true, Tests will run in a kotlinx.coroutines.test.TestScope with the given timeout. Setting isEnabled to false will disable a previously enabled TestScope setting.

Child elements inherit this setting, unless configured otherwise.