Extract base test classes to separate module

This commit is contained in:
Kirill Kamakin
2022-11-12 13:52:56 +01:00
parent cb23f1a62d
commit 4dcf1cc915
7 changed files with 37 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ dependencies {
implementation(project(":datastore"))
implementation(project(":datasource"))
implementation(project(":logging"))
implementation(project(":testing"))
implementation(libs.android.material.material)

View File

@@ -25,3 +25,4 @@ include(":database")
include(":datastore")
include(":logging")
include(":datasource")
include(":testing")

1
testing/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/build

34
testing/build.gradle.kts Normal file
View File

@@ -0,0 +1,34 @@
plugins {
id("gq.kirmanak.mealient.library")
id("kotlin-kapt")
id("dagger.hilt.android.plugin")
}
android {
namespace = "gq.kirmanak.mealient.test"
}
dependencies {
implementation(project(":logging"))
implementation(libs.google.dagger.hiltAndroid)
kapt(libs.google.dagger.hiltCompiler)
kapt(libs.google.dagger.hiltAndroidCompiler)
implementation(libs.google.dagger.hiltAndroidTesting)
implementation(libs.jetbrains.kotlinx.coroutinesAndroid)
implementation(libs.jetbrains.kotlinx.coroutinesTest)
implementation(libs.androidx.test.junit)
implementation(libs.androidx.coreTesting)
implementation(libs.google.truth)
implementation(libs.io.mockk)
implementation(libs.robolectric)
}
kapt {
correctErrorTypes = true
}