Test, Mocks, Espresso, Fakes, JUnit, Integration - Google Codelab - Android Kotlin

Опубликовано: 27 Май 2026
на канале: Mango Burrito
1,260
9

This is a video following the Google Codelab to learn advanced Android Development techniques for testing your apps.
Google Codelab: https://developer.android.com/codelab...

What you'll learn
How to plan a testing strategy
How to create and use test doubles, namely fakes and mocks
How to use manual dependency injection on Android for unit and integration tests
How to apply the Service Locator Pattern
How to test repositories, fragments, view models and the Navigation component

#android

0:00 Welcome
2:52 App overview
7:17 Concept: Testing strategy
12:36 Make a fake data source
28:18 Write a test using DI
44:07 Setup fake repository
55:33 Use fake repo in ViewModel
1:03:07 Launch a Fragment in a test
1:13:48 Make a Service Locator
1:30:46 Write your first integration test w/ Espresso
1:35:20 Using Mockito to write Navigation tests
1:52:24 Solution Code & Summary