Testing in Android Part 3: Ent-to-End Tests

Using Android, Compose, and Coroutine Test Libraries to Test Features End-to-End

Siva Ganesh Kantamani


Photo by UX Indonesia on Unsplash


In the first article of this series, we covered testing business logic with unit tests and in the second one, we covered integration tests. In this article, we will test various features of the EasyTODO application using end-to-end tests.

End-to-End are large tests that focus on testing a feature from end-to-end(similar to how the users act). These tests obviously involve android components so we need a physical device or emulator to run them. End-to-End tests go under androidTest similar to integration tests.

Involving android components make things a bit complicated to set up end-to-end tests like custom test runner, hilt test setup, etc. We’ve covered all of this in part 2 while writing integration tests, though I’ll give a quick recap then we’ll start on writing end-to-end tests.

Hilt SetUp Recap