sergio-sastre / AndroidUiTestingUtils

A set of TestRules, ActivityScenarios and utils to facilitate UI and screenshot testing under given configurations: FontSizes, Locales...
MIT License
290 stars 14 forks source link

DisplaySizeTestRule timing out very often on all API levels #11

Closed sergio-sastre closed 2 years ago

sergio-sastre commented 2 years ago

DisplaySizeTestRule timing out very often. Using DisplaySizeTestRule#withTimeout(timeout) does not help.

Device or Emulator: Emulator API level: Any API level AndroidUiTestingUtils version: 1.1.1 Affected Component: Activity (ONLY) -> DisplaySizeTestRule Buggy Configuration: DisplaySizeTestRule Expected behavior: It does not time out

Remarks: It seems to be an issue with the context. Using instrumentation context seems to fix the issue. Moreover, it seems that sometimes it hangs if the emulator does not have enough RAM (OOM exception).

sergio-sastre commented 2 years ago

Solved in 1.1.2