Friday, March 14, 2025
HomeAndroid app developmentTake a look at smarter, not tougher: new testing methods documentation |...

Take a look at smarter, not tougher: new testing methods documentation | by Jose Alcérreca | Android Builders | Nov, 2024


We’re happy to announce a major replace to our official documentation on testing methods for Android builders. These new guides will make it easier to create extra strong and dependable apps throughout type elements.

We work carefully with many groups and one factor all of them have in frequent is a justified rising concentrate on automated testing. Extra options, extra type elements, and extra supported Android releases make exams more and more essential. These guides don’t concentrate on testing extra, however on testing thoughtfully in order that bugs are caught early within the growth course of and groups waste much less time debugging points in manufacturing or flaky exams.

The brand new pages are extra opinionated and current the testing technique adopted by Google apps: a 5-layer pyramid that’s adaptable to the precise wants of your app and group.

An instance scalable check pyramid

We launched 7 new pages:

  • Emphasis on developer productiveness: Our up to date documentation highlights how a well-defined (1) testing technique can enhance your growth workflow by figuring out points early within the growth cycle.
  • Deciding on the Proper Take a look at Sorts: We’ve included extra steering on essential check varieties, together with (2) screenshot and (3) efficiency exams, and the way to decide on essentially the most acceptable one for various eventualities. We additionally included the time period “conduct” check for these UI exams that don’t take screenshots.
  • Trade finest practices: You may’t check at scale with flaky exams. We now have added suggestions on enhancing the (4) stability of huge exams and techniques to enhance reliability with instruments like (5) Robolectric.
  • Avoiding regressions in several display sizes: Regressions in giant screens are quite common, so it’s essential to have automated exams for giant screens. We added (6) testing technique suggestions and (7) instruments to catch these points.

We encourage you to overview the up to date documentation and start incorporating these finest practices into your initiatives. Your suggestions is at all times welcome, so please go away a remark along with your ideas on the adjustments and the way we will proceed to enhance our steering.

Completely satisfied testing!



Supply hyperlink

RELATED ARTICLES

Most Popular

Recent Comments