# Unit tests on Android with Kotlin (KAD 22)

DevFeed: [Unit tests on Android with Kotlin (KAD 22)](<https://devfeed.tech/articles/unit-tests-on-android-with-kotlin-kad-22-27230.md>)

Original publisher: [Read original article](<https://antonioleiva.com/unit-tests-android-kotlin>)

Published: 2017-04-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Antonio Leiva](<https://devfeed.tech/sources/antonio-leiva.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [unit tests](<https://devfeed.tech/topics/unit-tests.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [Java](<https://devfeed.tech/topics/java.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

## AI overview

This tutorial explains how to create and run unit tests for Android applications written in Kotlin. It covers adding JUnit and Mockito with Gradle, creating a first test, and addressing Mockito compatibility issues with Kotlin nullability and final classes.

## Source excerpt

Everything Android, Kotlin and other random topics