Join Chiu-Ki Chan for an in-depth discussion in this video Summary, part of Effective Android Testing for Mobile Developers.
- [Instructor] In this chapter,…you learned how to run UI tests…without an Android device using the MVP pattern.…You organize your app, such that all the logic…is in the presenter, and restrict yourself…to use Pure Java classes in the presenter.…When the presenter needs to interact with the Android part…of your app, it does so through an interface.…This way you can stub out interface during testing…and verify the behavior of the UI…by insuring that the methods on the interface…are invoked with the right parameters.…
You also learned how to stub out the dependency…for the presenter by using the Mockito library.…It may take a while to get used to the Mockito syntax,…but it is a very powerful library that lets you specify…how your objects should react when its methods are called…and also to verify which methods are called…plus verify the parameters that got passed to the methods.…Mockito is a great tool when building and testing your app,…so definitely make use of it.…
- Why test?
- Local vs. on-device
- Code coverage
- UI testing
- Hermetic environment
- Dependency injection
- Testing with MVP
Skill Level Intermediate
Android App Development: Unit Testingwith James P White2h 58m Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
1. Testing Considerations
2. Test as You Go
3. UI Testing
4. Hermetic Environment
5. Robot Pattern
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.