Are there any sources for learning about how to te...
# compose
j
Are there any sources for learning about how to test with Composables + multiplatform viewmodels and
.collectAsState()
?
m
When it comes to testing flows this library is helpful: https://github.com/cashapp/turbine To test composables You should look at some UI testing framework like Espresso.
j
Can I use this with
runComposeUiTest
?
m
Well, yes but I think it would be less error prone to test your ViewModels separately to Your composables. https://developer.android.com/develop/ui/compose/state-hoisting
j
hmmm…