You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 The issue is there is no good solution to clear storage data while running tests
2 Would be great to have box based function to call before any tests (or all of them), to remove all data after previous tests
3 Alternatives:
Marathon
fun clearStorage() {
InstrumentationRegistry.getInstrumentation().uiAutomation.executeShellCommand("pm clear PACKAGE NAME")
.close()
}
The text was updated successfully, but these errors were encountered:
pm clear is awful solution. Clear shared, internal and such in before hook, if needed use hilt injection to clear other stuff. pm clear breaks instrumented tests instantly when run.
1 The issue is there is no good solution to clear storage data while running tests
2 Would be great to have box based function to call before any tests (or all of them), to remove all data after previous tests
3 Alternatives:
InstrumentationRegistry.getInstrumentation().uiAutomation.executeShellCommand("pm clear PACKAGE NAME")
.close()
}
The text was updated successfully, but these errors were encountered: