First steps
-
Add the TestBalloon Gradle plugin to your build script:
-
Add a dependency for the TestBalloon framework core library:
Info
The repository contains a Multiplatform configuration example.
-
Add extra dependencies for Android (optional):
Info
The repository contains configuration examples for Android, Multiplatform with Android and Multiplatform library with Android.
Note
Google is deprecating the
com.android.applicationplugin in favor ofcom.android.kotlin.multiplatform.library. Android-KMP integration is currently a moving target and there are multiple issues, so please test if it meets your needs. -
Add a dependency for the assertions library of your choice:
-
Write a test:
-
Run tests via the familiar Gradle test tasks.
-
Install the TestBalloon plugin for IntelliJ IDEA from the JetBrains Marketplace to run individual tests or test suites via the editor’s gutter icons.