Kotlin Clean Code for Android,  Part 1

Test Driven Development in Android Using Kotlin

This post is about my journey of finding the right mobile app unit testing framework and how I arrived at Kotlin Clean Code for Android. A design pattern, it is an adaptation of Android Clean Code. When you finish this blog series, I promise, you will learn how to unit test your mobile app, piece by piece.

Let Us Start With Unit Testing

Writing an Android app that has good unit test code coverage is not easy, as Android code typically has a massive activity or fragment class that manages more than one function or task. Typical fragment classes do the below tasks: