eygraber
06/10/2022, 12:07 AMLaunchedEffect
as far as TestDispatcher
is concerned?
I'm trying to advanceTimeBy
past a delay
in a LaunchedEffect
but that isn't working because the dispatcher is a AndroidUiDispatcher
(or FlushCoroutineDispatcher
in desktop).
As far as I can tell, the only way around this is to create a new context (launch
, withContext
, etc...) that uses the TestDispatcher
. Is that correct, or am I missing something?Zach Klippenstein (he/him) [MOD]
06/10/2022, 12:28 AMTestDispatcher
from the coroutines testing library?eygraber
06/10/2022, 12:32 AMUnconfinedTestDispatcher
to `runTest`:eygraber
06/10/2022, 12:32 AMephemient
06/10/2022, 1:29 AMeygraber
06/10/2022, 1:48 AMrunComposeUiTest
isn't resolving for me on CfD 1.2.0 latest dev build. MainTestClock
is resolving.eygraber
06/10/2022, 2:00 AMImageComposeScene
and those don't seem compatible.Zach Klippenstein (he/him) [MOD]
06/10/2022, 4:21 PMeygraber
06/10/2022, 11:12 PMeygraber
06/13/2022, 5:38 AMIgor Demin
06/14/2022, 3:18 PMrunComposeUiTest
, because the latest rebase on Jetpack Compose was on 12 of April, but the feature was merged on 28 of April. The next rebase will be in about a month.