koin-samples
koin-samples copied to clipboard
KOIN - a concise and pragmatic dependency injection framework for Kotlin -- #Samples
Hi, I try to create UI test with koin, fragment and viewModel (architecture component) > @RunWith(AndroidJUnit4::class) class LoginFragmentTest{ @Before fun init() { startKoin(hsApp + viewModel + api) activityRule.activity.setFragment(testFragment) EspressoTestUtil.disableProgressBarAnimations(activityRule) }...
The WeatherApp sample does not work correctly, because the Fragment uses a different ViewModel than the Activity. It seems like it was forgotten to be updated after 0.9.1. Since the...