Anthony Martin
10/22/2021, 1:47 PMInstrumentationRegistry.getInstrumentation().targetContext
I have also tried using createAndroidComposeRule<ComponentActivity>() and then using rule.activity.getString()
Then calling the resulting context with getString(R.string.app_name) returns:
Using Method threw 'android.content.res.Resources$NotFoundException' exception.
The resource exists and is being used by the Composable function I am testing. But inside androidTest it doesn't work.
I've tried putting the res folder in androidTest and that didn't change anything.
Any help would be great as we want to have testing setup for multiple languages