https://kotlinlang.org logo
#compose
Title
# compose
i

Ian Warwick

05/12/2022, 4:17 PM
Regarding hybrid testing. I could not find much information about testing espresso/compose mixed tests however did find some information relating to
createEmptyComposeRule()
however in practice using it with espresso tests with
ActivityScenario
based tests has issues with idling resource timeout. I found this repo that demonstrates the issue https://github.com/Maksim-Novikov/ComposeUiTestsBug (check the only
andoridTest
test there) I am not sure the source of this repo but a github community member posted it I guess however it demonstrates a workaround for my exact issue. My question is anyone using this approach and is there an official bug or something raised regarding this and the workaround? I can’t find anything 😞
In the repo the solution is to unregister and register the espresso link idling resource when you do espresso and compose test statements respectively
or you get this error
Wait for [Compose-Espresso link] to become idle timed out
23 Views