diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f5b13fe24..e56fcc7b1 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -114,19 +114,23 @@ kotlin { commonTest.dependencies { implementation(projects.core.dataTest) implementation(projects.core.testing) - implementation(projects.core.screenshotTesting) // implementation(projects.sync.syncTest) implementation(libs.kotlin.test) @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class) implementation(compose.uiTest) } + androidUnitTest.dependencies { + implementation(projects.core.screenshotTesting) + } + androidInstrumentedTest.dependencies { implementation(projects.core.dataTest) implementation(projects.core.testing) implementation(libs.androidx.navigation.testing) implementation(project.dependencies.platform(libs.androidx.compose.bom)) implementation(libs.androidx.compose.ui.test) + implementation(libs.androidx.test.espresso.core) implementation(libs.koin.test) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4de5e2cf6..9011ef57b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -89,6 +89,7 @@ androidx-metrics = { group = "androidx.metrics", name = "metrics-performance", v androidx-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "androidxNavigation" } androidx-navigation-testing = { group = "androidx.navigation", name = "navigation-testing", version.ref = "androidxNavigation" } androidx-profileinstaller = { group = "androidx.profileinstaller", name = "profileinstaller", version.ref = "androidxProfileinstaller" } +androidx-test-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "androidx-espresso-core" } androidx-test-core = { group = "androidx.test", name = "core", version.ref = "androidxTestCore" } androidx-test-ext = { group = "androidx.test.ext", name = "junit-ktx", version.ref = "androidxTestExt" } androidx-test-rules = { group = "androidx.test", name = "rules", version.ref = "androidxTestRules" }