About 1,570,000 results
Open links in new tab
  1. Build local unit tests | Test your app on Android | Android Developers

    Mar 5, 2026 · This document explains how local unit tests run on your workstation's JVM to quickly evaluate app logic, detailing their setup, dependency configuration, and how to mock Android …

  2. Write unit tests for ViewModel - Android Developers

    Jun 17, 2024 · With unit tests, you can test functions, classes, and properties. Local unit tests are executed on your workstation, which means they run in a development environment without the need …

  3. Test Java code using Kotlin and JUnit – tutorial | Kotlin

    Apr 2, 2026 · Kotlin is fully interoperable with Java, which means you can write tests for Java code using Kotlin and run them together with your existing Java tests in the same project. In this tutorial, you'll …

  4. Test your multiplatform app − tutorial | Kotlin Multiplatform

    Apr 1, 2026 · This tutorial will first show you how to set up, create, and run unit tests for common code in a simple Kotlin Multiplatform project. Then, you'll work with a more complex example that requires …

  5. Tutorial: Test-driven development with Kotlin | IntelliJ IDEA

    Jul 24, 2025 · Tutorial: Test-driven development with Kotlin  Last modified: 24 July 2025 Whether you like to write your tests before writing production code, or like to create the tests afterwards, IntelliJ …

  6. Test in Android Studio

    Mar 6, 2026 · The test coverage tool is available for local unit tests to track the percentage and areas of your app code that your unit tests have covered. Use the test coverage tool to determine whether …

  7. How to write Automated Unit Test and Instrumentation UI Test In Android ...

    Aug 11, 2024 · Type of Build-In Automated Tests in Android Local Unit Tests Local tests are a type of automated test that directly test a small piece of code to ensure that it functions properly.

  8. Unit Testing of ViewModel with Kotlin Coroutines and LiveData in Android

    Jul 23, 2025 · In this article, we will learn how to write a unit test for a ViewModel using Kotlin Coroutines and LiveData and adhering to a basic MVVM Architecture. We are writing a unit test to check the …

  9. Fundamentals of testing Android apps | Test your app on Android ...

    Mar 5, 2026 · This page outlines the core tenets of testing Android apps, including the central best practices and their benefits.

  10. Testing Kotlin coroutines on Android

    Mar 6, 2026 · Learn how to unit test Kotlin coroutines and suspending functions in Android applications using the kotlinx.coroutines.test library, focusing on `runTest`, `TestDispatchers`, and dependency …