Articles about testing
-
Why you shouldn't rely only on end-to-end tests
Wednesday, October 04, 2023 in Testing
Photo by [Eugene Tkachenko](https://unsplash.com/@eugene_tkachenko?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/TF47p5PHW18?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) As an experienced Android developer and tech leader, I’ve seen many teams try to solve stability and testing time problems by relying solely on end-to-end (end-to-end) tests. While end-to-end tests can be a valuable tool, they’re not a …
-
Why you should start with one device for Android integration testing
Wednesday, October 04, 2023 in Testing
Photo by [Dim Hou](https://unsplash.com/@dimhou?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/PfNzKoA5R4E?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) Introduction: As an experienced Android developer and tech leader, I’ve seen many teams make the same mistake when getting started with integration testing: they try to test their apps on too many devices. This is a mistake because it can be …
-
Why you should always run UI tests on PRs before merging
Wednesday, October 04, 2023 in Testing
Photo by [Lenny Kuhne](https://unsplash.com/@lennykuhne?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/jHZ70nRk7Ns?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) As an experienced Android developer and tech leader, I’ve seen many teams struggle to adopt integration tests (End-to-End tests with mocked API). There’s one key reason for this: tests that break, aren’t maintained, become outdated …
-
When to skip end-to-end testing
Wednesday, October 04, 2023 in Testing
Photo by [Susan Q Yin](https://unsplash.com/@syinq?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/Ctaj_HCqW84?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) As an experienced Android developer and tech leader, I’ve learned a lot about the importance of testing. However, I’ve also learned that there are times when it’s simply not worth the effort to write end-to-end (E2E) tests. E2E …
-
Making Espresso Tests More Understandable and Reusable
Wednesday, October 04, 2023 in Testing
Photo by [Kiwihug](https://unsplash.com/@kiwihug?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/cA4RWlZsXYQ?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) Introduction Espresso is a powerful tool for testing Android applications. However, it can be difficult to write Espresso tests that are both understandable and reusable. In this blog post, we will discuss a best practice for making Espresso tests …
-
Improve your Android tests with better assertions
Wednesday, October 04, 2023 in Testing
Photo by [Raquel Martínez](https://unsplash.com/@fiteka?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/SQM0sS0htzw?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) As an Android developer, you know how important it is to write good tests. Tests help you to ensure that your code works as expected and that it is free of bugs. One of the most common types of tests are assertions. Assertions check whether a …
-
How to improve integration tests by using mock APIs to avoid scrolling
Wednesday, October 04, 2023 in Testing
Photo by [Taylor Flowe](https://unsplash.com/@taypaigey?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/aXeVH4FcS1k?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) As an Android developer, I’ve spent a lot of time writing integration tests. Integration tests are important for ensuring that our code works as expected when it’s integrated with other parts of our app, such as the backend API or a …
-
Beware of UI test abstractions
Wednesday, October 04, 2023 in Testing
Photo by [USGS](https://unsplash.com/@usgs?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/hoS3dzgpHzw?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) As an experienced Android developer and tech leader, I’m often asked about the best way to write UI tests. One of the most common recommendations is to use an abstraction library, such as Kakao. These libraries can make it easier to write tests …
-
Avoid using IDs in Espresso tests
Wednesday, October 04, 2023 in Testing
Photo by [George Prentzas](https://unsplash.com/@georgeprentzas?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/SRFG7iwktDk?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) Introduction: Espresso is a powerful testing framework for Android apps. It allows you to write tests that interact with your app’s UI in a natural way. However, there are some best practices you should follow to write effective Espresso tests. …