module Analyzer::Kotlin::KotlinEngine

Defined in:

analyzer/engines/kotlin_engine.cr

Class Method Summary

Class Method Detail

def self.test_path?(path : String) : Bool #

Standard Kotlin/JUnit/Gradle test-source conventions:

  • /src/test/ — Maven/Gradle JVM test root
  • /jvmTest/ /commonTest/ — Gradle Kotlin Multiplatform test source sets
  • /jsTest/ /nativeTest/
  • /test/ anywhere under a Gradle kotlin { } source dir (KMP uses <target>/test/ rather than the src/test/ Maven layout)
  • /testData/ — Kotlin compiler-plugin fixture dir used by ktor-compiler-plugin/testData/...
  • Filenames ending in Test.kt / Tests.kt — JUnit/Kotest

ktor's own repo registers ~370 phantom endpoints from ktor-client/...-tests/ modules and */jvm/test/... directories that exercise the routing DSL under inline test servers.


[View source]