Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr3zee committed Oct 1, 2024
1 parent ab3d97d commit b946964
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion samples/ktor-android-app/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ compose-plugin = "1.5.14" # https://mvnrepository.com/artifact/androidx.compose.
compose-bom = "2024.09.02"
material3 = "1.3.0"
junit = "4.13.2"
ktor = "2.3.12"
ktor = "3.0.0-rc-1"
kotlinx-serialization-json = "1.7.3"
kotlinx-coroutines-core = "1.9.0"
logback = "1.5.8"
Expand Down
3 changes: 3 additions & 0 deletions samples/ktor-web-app/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Ktor Web App
Sample application with Kotlin/Js on frontend and Kotlin/Jvm on backend,that uses kRPC with Ktor to communicate.

> Warning: the code is broken due to https://youtrack.jetbrains.com/issue/KT-71757/
> No workarounds for now
### Running frontend
To run frontend in development mode, run this command:
```bash
Expand Down
2 changes: 1 addition & 1 deletion samples/ktor-web-app/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
kotlin = "2.0.10"
kotlin-wrappers-bom = "1.0.0-pre.812"
ktor = "2.3.12"
ktor = "3.0.0-rc-1"
kotlinx-serialization-json = "1.7.3"
kotlinx-coroutines-core = "1.9.0"
logback = "1.5.8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import kotlin.test.assertEquals
class ApplicationTest {
@Test
fun testRoot() = testApplication {
application {
module()
}

val service = createClient {
installRPC()
}.rpc("/api") {
Expand Down
6 changes: 3 additions & 3 deletions samples/simple-ktor-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
plugins {
kotlin("jvm") version "2.0.10"
kotlin("plugin.serialization") version "2.0.10"
id("io.ktor.plugin") version "2.3.12"
id("io.ktor.plugin") version "3.0.0-rc-1"
id("org.jetbrains.kotlinx.rpc.plugin") version "0.3.0"
}

Expand Down Expand Up @@ -35,10 +35,10 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-client")
implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-server")

implementation("io.ktor:ktor-client-cio-jvm")
implementation("io.ktor:ktor-client-cio")
implementation("io.ktor:ktor-server-netty-jvm")
implementation("ch.qos.logback:logback-classic:1.5.8")

testImplementation("io.ktor:ktor-server-tests-jvm")
testImplementation("io.ktor:ktor-server-test-host")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:2.0.10")
}

0 comments on commit b946964

Please sign in to comment.