Skip to content

Commit f4f1cc1

Browse files
committed
test(core): 补充全面的单元测试
1 parent 26340fb commit f4f1cc1

6 files changed

Lines changed: 2177 additions & 0 deletions

File tree

‎lib/build.gradle.kts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,24 @@ android {
2828
withSourcesJar()
2929
}
3030
}
31+
32+
testOptions {
33+
unitTests {
34+
isIncludeAndroidResources = true
35+
}
36+
}
3137
}
3238

3339
dependencies {
3440
implementation("androidx.core:core-ktx:1.12.0")
3541
implementation("androidx.annotation:annotation:1.7.1")
3642
compileOnly("androidx.databinding:databinding-runtime:8.2.0")
3743
compileOnly("androidx.recyclerview:recyclerview:1.3.2")
44+
45+
testImplementation("junit:junit:4.13.2")
46+
testImplementation("org.robolectric:robolectric:4.14.1")
47+
testImplementation("com.google.truth:truth:1.4.4")
48+
testImplementation("androidx.test:core:1.6.1")
3849
}
3950

4051
afterEvaluate {

0 commit comments

Comments
 (0)