Introduction
Welcome
()
What you should know
()
Exercise files
()
1. What Is Espresso?
Automated testing
()
Types of Android tests
()
How Espresso works
()
Advantages of Espresso
()
Synchronization: Message queue
()
Synchronization: Async tasks
()
2. Your First Espresso Test
App: Hello World
()
Adding Espresso to your project
()
Turn off animations
()
ActivityTestRule
()
The Espresso formula
()
ViewMatcher
()
ViewAction
()
ViewAssertion
()
String value vs. string id
()
Why not findViewById?
()
Fluent API
()
Hamcrest matcher
()
3. Espresso Test Recorder
Write tests automatically
()
Record actions
()
Add assertions
()
Generated code
()
4. Pinpointing a View
App: Toolbar Title
()
Layout Inspector
()
Combining matchers
()
Pitfall to overspecification
()
Custom matcher: matchesSafely
()
Custom matcher: describeTo
()
Using withToolbarTitle
()
5. List View
onView vs. onData
()
App: List view
()
withValue matcher
()
onData
()
Failing test
()
6. Recycler View
App: Recycler view
()
Cannot use onData
()
MainActivityTest
()
RecyclerViewActions
()
Other recycler view actions
()
Wrap up
()
Ex_Files_Android_Espresso_EssT.zip
(5.8 MB)