Skip to content

Commit 8d7fed8

Browse files
committed
Add more test libraries for androidTest classes.
1 parent 5d4b3e3 commit 8d7fed8

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

app/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ dependencies {
148148
implementation(libs.bundles.room)
149149
implementation(libs.androidx.work.runtime.ktx)
150150
testImplementation(libs.junit)
151+
androidTestImplementation(libs.androidx.test.core)
152+
androidTestImplementation(libs.androidx.test.runner)
153+
androidTestImplementation(libs.androidx.test.rules)
154+
androidTestImplementation(libs.androidx.test.ext.junit)
155+
androidTestImplementation(libs.androidx.test.ext.truth)
151156
ksp(libs.androidx.room.compiler)
152157
detektPlugins(libs.compose.detekt)
153158
}

gradle/libs.versions.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ work = "2.11.1"
1515
room = "2.8.4"
1616
#junit
1717
junit = "4.13.2"
18+
androidx-test-core = "1.7.0"
19+
androidx-test-runner = "1.7.0"
20+
androidx-test-rules = "1.7.0"
21+
androidx-test-ext-junit = "1.3.0"
22+
androidx-test-ext-truth = "1.7.0"
1823
#Fossify
1924
commons = "6.1.5"
2025
#Gradle
@@ -39,6 +44,11 @@ androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref =
3944
compose-detekt = { module = "io.nlopez.compose.rules:detekt", version.ref = "detektCompose" }
4045
#junit
4146
junit = { group = "junit", name = "junit", version.ref = "junit" }
47+
androidx-test-core = { group = "androidx.test", name = "core", version.ref = "androidx-test-core" }
48+
androidx-test-runner = { group = "androidx.test", name = "runner", version.ref = "androidx-test-runner" }
49+
androidx-test-rules = { group = "androidx.test", name = "rules", version.ref = "androidx-test-rules" }
50+
androidx-test-ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx-test-ext-junit" }
51+
androidx-test-ext-truth = { group = "androidx.test.ext", name = "truth", version.ref = "androidx-test-ext-truth" }
4252
#Fossify
4353
fossify-commons = { module = "org.fossify:commons", version.ref = "commons" }
4454
[bundles]

0 commit comments

Comments
 (0)