Take Screenshot on Failure When Running Espresso Tests
When running Espresso tests I wanted a way to save screenshots of the app under test whenever a test failed. This feature isn't currently supported and all of the solutions online seemed overly complex due to supporting older test tool versions, like manually parsing the stack trace for the method …
more ...