© Denys Zelenchuk 2019
Denys ZelenchukAndroid Espresso Revealedhttps://doi.org/10.1007/978-1-4842-4315-2_2

2. Customizing Espresso for Our Needs

Denys Zelenchuk1 
(1)
Zürich, Switzerland
 

Espresso is a really good testing framework, but it is not possible to cover all the test automation cases with a predefined set of methods and classes. In the same way that Android’s fundamental components can be customized during application development, Espresso enables us to customize its components. Engineers are free do create their own actions, matchers, and failure handlers and plug them into the tests. In this chapter, we learn how to create our custom view, swipe, and recycler view actions; understand how to build different types of matchers; handle test ...

Get Android Espresso Revealed: Writing Automated UI Tests now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.