Dan Tech Academy
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.

What this lesson covers
  1. 01Lesson Goal
  2. 02Part 1: Most Tests Don't Need Koin
  3. 03Part 2: koin-test And Hygiene Between Tests
  4. 04Part 3: AppGraphTest Builds The Whole Graph
  5. 05Part 4: An Allowlist Checked In Both Directions
  6. 06Part 5: The Part Of The Graph commonTest Can't See
  7. 07Practice Exercise
  8. 08Code Reading Path
  9. 09Signs To Avoid
  10. 10References
  11. 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
Sign in