We’re happy to announce a major replace to our official documentation on testing methods for Android builders. These new guides will aid you create extra strong and dependable apps throughout type components.
We work carefully with many groups and one factor all of them have in frequent is a justified rising give attention to automated testing. Extra options, extra type components, and extra supported Android releases make exams more and more essential. These guides don’t give attention to 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 particular wants of your app and group.
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 Check Varieties: We’ve included extra steerage on essential take a look at varieties, together with (2) screenshot and (3) efficiency exams, and the way to decide on probably the most acceptable one for various situations. We additionally included the time period “conduct” take a look at for these UI exams that don’t take screenshots.
- Business greatest practices: You’ll be able to’t take a look at at scale with flaky exams. We have now added suggestions on bettering the (4) stability of massive exams and methods 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 big screens. We added (6) testing technique suggestions and (7) instruments to catch these points.
We encourage you to assessment the up to date documentation and start incorporating these greatest practices into your initiatives. Your suggestions is at all times welcome, so please depart a remark together with your ideas on the modifications and the way we will proceed to enhance our steerage.
Glad testing!