Learn how to set up the Android project for local tests and how to execute local tests. You'll explore JVM unit tests in Android Studio, executing JVM unit tests from the command line, and understand what a failed test looks like.
- [Voiceover] By now, I'm sure you're anxious…to start creating and running your own Android unit tests.…Let's see how to use Android Studio…to create exercise local tests.…I've started Android Studio again,…but this time I'm not opening any project.…Instead, I'm going to create a new project.…In Android Studio, when you create a new project,…it assumes that you want to create…and execute unit tests.…To some extent, part of the setup work is done for you.…Let me show you what I mean.…
I'm going to create a new project in Android Studio.…Use the "Welcome to Android Studio" screen…to start a new Android Studio project.…At this point, I'm not concerned…with the details of the application,…so I'm just going to use the default values…in the New Project Wizard as I create my new project.…I'm going to allow the application name…and the company domain name to remain as the defaults.…I'll change my project location to be…02_03MyApplication folder.…
When asked for a target Android device,…I'll leave the phone and tablet checked.…
AuthorJames P White
- Why unit test?
- Unit testing tools
- Local testing with JUnit
- Working with JUnit assertions, rules, and categories
- Executing instrumented tests
- Filtering tests
- Testing with UI Automator and other testing tools
Skill Level Intermediate
Foundations of UX: Usability Testingwith Chris Nodder1h 29m Beginner
1. Getting Started
2. Local Tests
3. Instrumented Tests
4. Other Android SDK Testing Tools
5. Mocking objects
- 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.