We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Within the same test class, the shared preferences folder is not always present depending on the different tests within that class.
@RunWith(RobolectricTestRunner::class) class SharedPrefsTest { @Test fun testSharedPrefsFolder() { val context: Context = ApplicationProvider.getApplicationContext() Assert.assertTrue(File(context.applicationInfo.dataDir, "shared_prefs").exists()) } @Test fun testSharedPrefsFolder2() { val context: Context = ApplicationProvider.getApplicationContext() Assert.assertTrue(File(context.applicationInfo.dataDir, "shared_prefs").exists()) } }
Test results:
Robolectric 4.11.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Within the same test class, the shared preferences folder is not always present depending on the different tests within that class.
Steps to Reproduce
Test results:
Robolectric & Android Version
Robolectric 4.11.1
The text was updated successfully, but these errors were encountered: