Suite • opensavvy.prepared.suite • backgroundScope
backgroundScope¶
CoroutineScope
for services started by this test.
The test finishes when all tasks started in foregroundScope
are finished. If there are still tasks running in backgroundScope
, they are cancelled
.
This is useful to execute background services which are not part of the system-under-test, yet are expected to be running by the system-under-test.
To start a single coroutines, see launchInBackground
.
Tasks started in this scope respect the controlled time
.