What's the story around testing code that uses <KM...
# multiplatform
c
What's the story around testing code that uses KMP resources? Let's say I have some code in
commonMain
that uses the APIs for accessing resources from non-compose code:
Copy code
val message = getString(Res.string.my_message)
Should I expect that running this in
commonTest
works?
When I say "works" I mean the following in
commonMain
. Should I be able to run this on host side unit tests?
Copy code
@Test fun testMessage() = runTest { 
    assertEquals("Hello world", getString(Res.string.my_message) )
}
Okay I just tried this and if I use Android Studio to run the tests then the "Android" test fails (for obvious reasons: It is trying to use the android.res API under the hood), but the iOS test passes. I wonder if it is possible to get the tests to work when running host-side?