Extract base test classes to separate module
This commit is contained in:
@@ -70,6 +70,7 @@ dependencies {
|
||||
implementation(project(":datastore"))
|
||||
implementation(project(":datasource"))
|
||||
implementation(project(":logging"))
|
||||
implementation(project(":testing"))
|
||||
|
||||
implementation(libs.android.material.material)
|
||||
|
||||
|
||||
@@ -25,3 +25,4 @@ include(":database")
|
||||
include(":datastore")
|
||||
include(":logging")
|
||||
include(":datasource")
|
||||
include(":testing")
|
||||
|
||||
1
testing/.gitignore
vendored
Normal file
1
testing/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
34
testing/build.gradle.kts
Normal file
34
testing/build.gradle.kts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user