Join Chiu-Ki Chan for an in-depth discussion in this video Local vs. on-device, part of Effective Android Testing for Mobile Developers.
- [Female] The Android operating system is spelled…using the Java programming language.…When you write an Android app, you are using…the Java core functionality with additional code…provided by the Android operating system.…Java is a widely used language,…and the Java part of your app can be executed…on any machine that runs a Java Virtual Machine, the JVM.…This includes your computer,…whether the is a desktop or a laptop.…
However, to run and therefore test an Android app,…you will need an Android device,…either a physical one or an emulator.…In either case, when you run your test,…you will need to transfer your app…and test code from the host computer to the device…and install it.…This takes time,…therefore, it is genuinely desirable to organize your code…such that you can compartmentalize the Java code,…the part without any Android libraries…into separate modules,…and test them with JVM unit tests.…
That is the fastest kind of test you can run,…and it's a great way to test business logic code.…But because the JVM does not have any knowledge…
Looking for study partners?Join the Associate Android Developer Exam study group
There's a difference between knowing how to implement testing and knowing when and why to do it. In this project-based course, get acquainted with best practices for testing Android apps by walking through a development workflow where testing is integrated throughout the process. As instructor Chiu-Ki Chan shows how to build the app, she explores the differences between JVM and on-device tests, explaining when to use each one. She also explores advanced techniques such as the MVP pattern. By demonstrating how testing fits into an app development workflow, she helps you bolster your ability to catch bugs—and determine where and when you should test.
- Why test?
- Local vs. on-device
- Code coverage
- UI testing
- Hermetic environment
- Dependency injection
- Testing with MVP
Skill Level 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.