Accessibility-Test-Framework-for-Android icon indicating copy to clipboard operation
Accessibility-Test-Framework-for-Android copied to clipboard

Make AccessibilityViewCheckException an EspressoException

Open jozuasijsling-ing opened this issue 1 year ago • 0 comments

Let's improve debuggability with this minor change.

Espresso's default failure handler catches EspressoException and changes its stacktrace to the test runner's thread. As a result:

Stacktrace before Stacktrace after
Stacktrace that does not include any test code or production code Stacktrace that does include the test code that triggered the AccessibilityCheckException

jozuasijsling-ing avatar Mar 22 '24 17:03 jozuasijsling-ing