From a1432fdf8f33a588863a694a4ce57039dd325ccd Mon Sep 17 00:00:00 2001 From: Shiina Kin Date: Fri, 13 Sep 2024 16:47:30 +0800 Subject: [PATCH] chore: import mockk for test --- app/build.gradle.kts | 4 ++++ app/gradle.properties | 1 + 2 files changed, 5 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 96ca8d20..20b7d2f4 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -6,6 +6,7 @@ val hikariVersion: String by project val postgresVersion: String by project val mySQLVersion: String by project val sqliteVersion: String by project +val mockkVersion: String by project val version: String by project plugins { @@ -73,7 +74,10 @@ dependencies { implementation("io.ktor:ktor-server-netty-jvm") implementation("ch.qos.logback:logback-classic:$logbackVersion") implementation("io.ktor:ktor-server-config-yaml") + + testImplementation("io.mockk:mockk:${mockkVersion}") testImplementation("io.ktor:ktor-server-test-host-jvm") + testImplementation("io.ktor:ktor-client-content-negotiation") testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion") } diff --git a/app/gradle.properties b/app/gradle.properties index e0457afb..2297aa28 100644 --- a/app/gradle.properties +++ b/app/gradle.properties @@ -8,5 +8,6 @@ hikariVersion=5.1.0 postgresVersion=42.7.3 mySQLVersion=9.0.0 sqliteVersion=3.46.1.0 +mockkVersion=1.13.12 development \ No newline at end of file