diff options
| author | David Göransson <david.goransson90@gmail.com> | 2024-02-13 16:24:51 +0100 |
|---|---|---|
| committer | David Göransson <david.goransson90@gmail.com> | 2024-02-15 13:58:34 +0100 |
| commit | 6f8407906736beb00f2492bdcc398dae822bd18c (patch) | |
| tree | 19af34c9156534dadea672561674afc73c0b9f1e /android/lib/model | |
| parent | c6157ee0ce96e4fbb0657bc7cac21c817093461c (diff) | |
| download | mullvadvpn-6f8407906736beb00f2492bdcc398dae822bd18c.tar.xz mullvadvpn-6f8407906736beb00f2492bdcc398dae822bd18c.zip | |
Add testing support for model module
Diffstat (limited to 'android/lib/model')
| -rw-r--r-- | android/lib/model/build.gradle.kts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/android/lib/model/build.gradle.kts b/android/lib/model/build.gradle.kts index 040c2fca0c..7264c6041a 100644 --- a/android/lib/model/build.gradle.kts +++ b/android/lib/model/build.gradle.kts @@ -1,5 +1,6 @@ plugins { id(Dependencies.Plugin.androidLibraryId) + id(Dependencies.Plugin.junit5) version Versions.Plugin.junit5 id(Dependencies.Plugin.kotlinAndroidId) id(Dependencies.Plugin.kotlinParcelizeId) } @@ -8,7 +9,10 @@ android { namespace = "net.mullvad.mullvadvpn.model" compileSdk = Versions.Android.compileSdkVersion - defaultConfig { minSdk = Versions.Android.minSdkVersion } + defaultConfig { + minSdk = Versions.Android.minSdkVersion + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 @@ -30,4 +34,12 @@ dependencies { implementation(Dependencies.jodaTime) implementation(Dependencies.Kotlin.stdlib) implementation(Dependencies.KotlinX.coroutinesAndroid) + + // Test dependencies + testRuntimeOnly(Dependencies.junitEngine) + + testImplementation(Dependencies.Kotlin.test) + testImplementation(Dependencies.junitApi) + + testImplementation(project(Dependencies.Mullvad.commonTestLib)) } |
