Has anyone had any luck running a ComposeRule in a delayed fashion? WIth ActivityScenario, we can create it and launch it when we want. However, rules get executed immediately before the test starts, and as such don’t really give us the opportunity to setup test expectations prior to launching. I’m trying to find some way around this, but haven’t been able to find anything yet.
j
Jan Skrasek
07/19/2022, 1:22 PM
Take a look at Idling resources, or maybe I don't understand the question 😐
m
mattinger
07/19/2022, 2:00 PM
@Jan Skrasek Yeah, i think you are misunderstanding. What i want is to apply some conditions before the activity itself is launched. This is especially important if the activity starts processing on startup. In my case, i have a test component that i’ve setup with a MockInterceptor that i want to apply rules to before the activity starts.
i
Ian Lake
07/19/2022, 4:35 PM
Welcome to the untestable nature of putting code directly in your activity