<@UHM5QMQ81> <@U2JKKPMEE> Wondering how to provide...
# koin
r
@Marko Mitic @arnaud.giuliani Wondering how to provide context in unit test when doing
checkModules()
in 2.x version. CheckModule fails, because it's not able to create context dependent dependency. I have tried giving mockedContext using
Mockito
and
mocck
to
startKoin
dsl, but no luck.
g
i use robolectric
r
okay. How you do it when you used roboelectric? I am sure, you can do it without roboelectric as well.
g
well setup robolectric as it should be, annotated the class with androidjunit, and the you can request a context. then i add this contezt to my checkmodules method