Hacker News new | ask | show | jobs
Ask HN: Android developers, how do you write UI tests for your app?
2 points by _vrov 1986 days ago
I recently started making Android Apps and was curious to know how the community writes UI tests.

- Do you rely on automated UI tests or manual or both?

- How do you write automated UI tests? Is Espresso good enough?

- Where are the devices present? Locally or something like AWS farm?

1 comments

We have a handheld product (custom hardware) that we struggle to test. Currently it’s all manual testing but lately I’ve been wondering how to increase test coverage and automate it too.
Are you looking to test the hardware or the software (which I assume is Android based)?
Software. It’s not Android, just Linux developed with Buildroot. We do have a web interface with a remote control feature that displays the screen and allows us to trigger buttons. I’m thinking we can use that interface to automate some basic tests but it might need to involve some image pattern recognition to test the output of an operation.