After this lesson you will
- Test ViewModels and use cases through constructors and fakes, without starting Koin
- Keep Koin clean between tests with startKoin and stopKoin
- Read AppGraphTest, the two-way allowlist and AndroidProcessGraphTest to catch missing bindings on both platforms
Duration25 min
DifficultyIntermediate
Testing With Koin
Tests that don't need Koin, startKoin/stopKoin hygiene, and AppGraphTest building the whole graph on Android and iOS.
- 01Lesson Goal
- 02Part 1: Most Tests Don't Need Koin
- 03Part 2: koin-test And Hygiene Between Tests
- 04Part 3: AppGraphTest Builds The Whole Graph
- 05Part 4: An Allowlist Checked In Both Directions
- 06Part 5: The Part Of The Graph commonTest Can't See
- 07Practice Exercise
- 08Code Reading Path
- 09Signs To Avoid
- 10References
- 11Key Points
Topics: kotlin, 07-dependency-injection
11 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: Most Tests Don't Need Koin, … — plus 114 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in