Has anyone had any luck running a ComposeRule in a...
# compose
m
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
Take a look at Idling resources, or maybe I don't understand the question 😐
m
@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
Welcome to the untestable nature of putting code directly in your activity