From 11b6973581833156e7cf9bfaea994f145f392af9 Mon Sep 17 00:00:00 2001 From: HyunWoo Lee Date: Wed, 1 Jan 2025 21:36:53 +0900 Subject: [PATCH] =?UTF-8?q?[#1012]=20mockk=20=EC=9D=98=EC=A1=B4=EC=84=B1?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80,=20mypage=EC=97=90=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=9D=98=EC=A1=B4=EC=84=B1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- feature/mypage/build.gradle.kts | 13 ++++++++++++- gradle/libs.versions.toml | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/feature/mypage/build.gradle.kts b/feature/mypage/build.gradle.kts index 46fb153c6..c83083897 100644 --- a/feature/mypage/build.gradle.kts +++ b/feature/mypage/build.gradle.kts @@ -26,6 +26,7 @@ plugins { sopt("feature") sopt("compose") + sopt("test") } android { @@ -44,4 +45,14 @@ dependencies { implementation(libs.process.phoenix) implementation(libs.kotlin.collections.immutable) implementation(libs.rin) -} \ No newline at end of file + + 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) +} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e510aab22..f5b90b273 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" @@ -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" }