We’re happy to announce a big replace to our official documentation on testing methods for Android builders. These new guides will enable you to create extra strong and dependable apps throughout kind components.
We work intently with many groups and one factor all of them have in frequent is a justified rising deal with automated testing. Extra options, extra kind components, and extra supported Android releases make exams more and more essential. These guides don’t deal with testing extra, however on testing thoughtfully in order that bugs are caught early within the improvement 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 workforce.
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 improvement workflow by figuring out points early within the improvement cycle.
- Deciding on the Proper Check Sorts: We’ve included further steering on essential check sorts, together with (2) screenshot and (3) efficiency exams, and the way to decide on probably the most applicable one for various situations. We additionally integrated the time period “conduct” check for these UI exams that don’t take screenshots.
- Trade greatest practices: You possibly can’t check at scale with flaky exams. We’ve added suggestions on bettering the (4) stability of huge exams and methods to enhance reliability with instruments like (5) Robolectric.
- Avoiding regressions in numerous 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 greatest practices into your initiatives. Your suggestions is at all times welcome, so please go away a remark along with your ideas on the modifications and the way we will proceed to enhance our steering.
Completely happy testing!