Add `StreamableHttpClientTest` with test infrastructure setup and dependencies <!-- Provide a brief summary of your changes --> ## Motivation and Context To test Streaming HTTP Transport ## How Has This Been Tested? Integration test added ## Breaking Changes No, only tests ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [x] Tests ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed ## Additional context <!-- Add any other context, implementation notes, or design decisions -->
32 lines
893 B
Kotlin
32 lines
893 B
Kotlin
plugins {
|
|
id("mcp.multiplatform")
|
|
}
|
|
|
|
kotlin {
|
|
jvm {
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|
|
}
|
|
sourceSets {
|
|
commonTest {
|
|
dependencies {
|
|
implementation(project(":kotlin-sdk"))
|
|
implementation(kotlin("test"))
|
|
implementation(libs.kotest.assertions.json)
|
|
implementation(libs.kotlin.logging)
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
implementation(libs.ktor.client.cio)
|
|
implementation(libs.ktor.server.cio)
|
|
implementation(libs.ktor.server.test.host)
|
|
}
|
|
}
|
|
jvmTest {
|
|
dependencies {
|
|
implementation(kotlin("test-junit5"))
|
|
implementation(libs.awaitility)
|
|
runtimeOnly(libs.slf4j.simple)
|
|
}
|
|
}
|
|
}
|
|
}
|