Hey Guys! It has a workaround for this? I already ...
# multiplatform
j
Hey Guys! It has a workaround for this? I already tried using the common test files in commonMain, but i need the robolectric in some instrumented test and when i build my android project, my app is getting 200mb because of the robolectric in commonMain. https://slack-chats.kotlinlang.org/t/522852/kmp-i-want-the-unit-tests-in-one-module-to-depend-on-the-tes
e
you should not need or use robolectric in an instrumented test
j
But i need it to test my SQLDelight database. Basically, I need the instrumented test to create a fake database to test my repository and for it I need the Roboletric to run on Android. In commonTest has a abstract class that I implemented with expect/actual, so only in androidUnitTest has the annotation for Robolectric. Now, i want use this abstract class in my tests from other modules.
e
robolectric will not work on Android.
j
Strange because i made it work.
And my test only passed when i used robolectric
I'll see here, what's happening and i return.