@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
gergo
08/12/2019, 9:46 AM
i use robolectric
r
ritesh
08/12/2019, 1:04 PM
okay. How you do it when you used roboelectric? I am sure, you can do it without roboelectric as well.
g
gergo
08/14/2019, 1:26 PM
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