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…
- 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.