Join James P White for an in-depth discussion in this video Categories, part of Android App Development: Unit Testing.
As the number of unit tests grow in your application,…it can start to get a little unwieldy…keeping track of all them, and organizing them…in a fashion that makes sense.…You may recall from an earlier video…that I provided you a rule of thumb…to at least have a test class or test case…for application class.…Truth be told, you will likely have…more test classes than you have application classes.…As you start to test all the alternate paths…of your application, and then look toward integration…and other types of tests.…
As you start to refactor your code…and use your test to validate that…other parts of the app aren't being…affected by the change, you will likely find…that grouping tests around functional…or logical areas is helpful and faster,…rather than having to run all the tests…for the entire system.…Although to be sure, you'll eventually want…to circle back and run full regression tests on your app.…So how do we organize unit tests?…With a feature called categories.…Categories are simple to define.…
They are typically implemented as interfaces.…
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
UX Foundations: 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.