test(api/rest): add basic endpoint tests
This commit is contained in:
parent
c7fb2817fc
commit
46218aa3c7
9 changed files with 253 additions and 8 deletions
|
|
@ -2,8 +2,10 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|||
|
||||
plugins {
|
||||
alias(libs.plugins.androidMultiplatformLibrary)
|
||||
alias(libs.plugins.kotest)
|
||||
alias(libs.plugins.kotlinMultiplatform)
|
||||
alias(libs.plugins.kotlinSerialization)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
kotlin {
|
||||
|
|
@ -30,12 +32,28 @@ kotlin {
|
|||
}
|
||||
commonTest.dependencies {
|
||||
implementation(libs.kotlin.test)
|
||||
implementation(libs.kotest.assertions)
|
||||
implementation(libs.kotest.framework)
|
||||
implementation(libs.kotest.property)
|
||||
implementation(libs.ktor.client.mock)
|
||||
}
|
||||
jvmMain.dependencies {
|
||||
implementation(libs.ktor.client.okhttp)
|
||||
}
|
||||
jvmTest.dependencies {
|
||||
implementation(libs.kotest.runner.junit5)
|
||||
}
|
||||
androidMain.dependencies {
|
||||
implementation(libs.ktor.client.okhttp)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named<Test>("jvmTest") {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
//tasks.withType<Test>().configureEach {
|
||||
// logger.lifecycle("UP-TO-DATE check for $name is disabled, forcing it to run.")
|
||||
// outputs.upToDateWhen { false }
|
||||
//}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue