Badoo Jul 28, 2020

MVI Architecture in Kotlin Multiplatform - Part 3

Article Summary

Arkadii Ivanov from Bumble Tech tackles the biggest challenge in Kotlin Multiplatform testing: no mocking frameworks. His solution? Embrace it as a feature, not a bug.

This is the final part of a three-part series on implementing MVI architecture in Kotlin Multiplatform. Ivanov covers the Kittens module with comprehensive unit and integration tests, demonstrating how to test shared code that runs on both iOS and Android without traditional mocking tools.

Key Takeaways

Critical Insight

Writing test implementations instead of using mocks creates more maintainable code that automatically validates against platform-specific quirks like Kotlin/Native's memory model.

The article includes two bonus exercises that will change how you think about dependency abstraction and test design in cross-platform projects.

Recent from Badoo

Related Articles