How to handle Room migration tests in KMP? I am cu...
# multiplatform
s
How to handle Room migration tests in KMP? I am currently migrating my Android app to KMP. I am using Room and already migrated database creation and DAOs to my KMP shared module (commonMain). Now I still have my migration tests left. They already use
SQLiteConnection
but still use Android specific things like
@RunWith(AndroidJUnit4::class)
MigrationTestHelper
and
InstrumentationRegistry
. What's the best practice to handle them? Are there practical ways to make them Android and iOS compatible while sharing most of the code? Or should I just leave them in the android app and skip tests for iOS assuming things are the same?
e
I'd just rely on the Android tests until you can upgrade versions
s
great information! then I will indeed just wait until that's in stable 🙂