Skip to content

Commit

Permalink
[#1012] mockk 의존성 추가, mypage에 테스트 의존성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
l2hyunwoo committed Jan 2, 2025
1 parent 8dcae83 commit 11b6973
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion feature/mypage/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
plugins {
sopt("feature")
sopt("compose")
sopt("test")
}

android {
Expand All @@ -44,4 +45,14 @@ dependencies {
implementation(libs.process.phoenix)
implementation(libs.kotlin.collections.immutable)
implementation(libs.rin)
}

testImplementation(libs.mockk)
testImplementation(libs.truth)
testImplementation(libs.robolectric)
testImplementation(libs.bundles.compose.test)

androidTestImplementation(libs.mockk.android)
androidTestImplementation(libs.hilt.testing)
kspAndroidTest(libs.hilt.testing.compiler)
androidTestImplementation(libs.bundles.compose.android.test)
}
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ robolectric = "4.14.1"
androidx-uiautomator = "2.3.0"
androidx-test = "1.6.2"
androidx-test-rules = "1.6.1"
mockk = "1.13.5"

gradleplugin = "8.7.3"
kspplugin = "2.1.0-1.0.29"
Expand Down Expand Up @@ -137,6 +138,8 @@ junit5-android-test-core = { module = "de.mannodermaus.junit5:android-test-core"
junit5-android-test-runner = { module = "de.mannodermaus.junit5:android-test-runner", version = "1.6.0" }
truth = { module = "com.google.truth:truth", version.ref = "truth" }
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
mockk-android = { module = "io.mockk:mockk-android", version.ref = "mockk" }

androidx-uiautomator = { module = "androidx.test.uiautomator:uiautomator", version.ref = "androidx-uiautomator" }
androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test" }
Expand Down

0 comments on commit 11b6973

Please sign in to comment.