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):
named("androidHostTest") { // (1)! dependencies { implementation("de.infix.testBalloon:testBalloon-framework-core:$testBalloonVersion") implementation("junit:junit:$junit4Version") } }- Using the
com.android.kotlin.multiplatform.libraryplugin.
named("androidDeviceTest") { // (1)! dependencies { implementation("de.infix.testBalloon:testBalloon-framework-core:$testBalloonVersion") implementation("androidx.test:runner:$androidxRunnerVersion") } }- Using the
com.android.kotlin.multiplatform.libraryplugin.
Info
The repository contains configuration examples for Android and Multiplatform library with Android.
- Using the
-
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.