# Refactor test utilities, fix conformance - Add `test-utils` module to streamline test cases - Rename module `kotlin-sdk-test` -> `integration-test` - Move test utilities for managing processes, ports, and TypeScript execution logic - Make conformance tests work by specifying conformance package version (0.1.8) ## Motivation and Context Reuse test infrastructure code, resurrect conformance tests ## How Has This Been Tested? CI, locally ## Breaking Changes No ## Types of changes - [x] Bug fix (non-breaking change which fixes an issue) - [x] Tests update ## 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
39 lines
1 KiB
Kotlin
39 lines
1 KiB
Kotlin
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(project(":kotlin-sdk"))
|
|
testImplementation(kotlin("test"))
|
|
testImplementation(project(":test-utils"))
|
|
testImplementation(libs.kotlin.logging)
|
|
testImplementation(libs.ktor.client.cio)
|
|
testImplementation(libs.ktor.server.cio)
|
|
testImplementation(libs.ktor.server.websockets)
|
|
testRuntimeOnly(libs.slf4j.simple)
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
events("passed", "skipped", "failed")
|
|
showStandardStreams = true
|
|
showExceptions = true
|
|
showCauses = true
|
|
showStackTraces = true
|
|
exceptionFormat = TestExceptionFormat.FULL
|
|
}
|
|
|
|
doFirst {
|
|
systemProperty("test.classpath", classpath.asPath)
|
|
|
|
println("\n" + "=".repeat(60))
|
|
println("MCP CONFORMANCE TESTS")
|
|
println("=".repeat(60))
|
|
println("These tests validate compliance with the MCP specification.")
|
|
println("=".repeat(60) + "\n")
|
|
}
|
|
}
|