0d3964f22e
based on the regular compiler tests infrastructure, but adding directives that can customize the definition from testdata. So far only default imports and provided properties are supported, but the infrastructure is easily extendable to other customizations. Another limitations that provided properties are not supported for the black box tests - the constructor parameters computing code should be adapted to support it. Note: in order to pick up the customized definition, the script files should have an extension .test.kts
17 lines
225 B
Kotlin
17 lines
225 B
Kotlin
|
|
plugins {
|
|
kotlin("jvm")
|
|
}
|
|
|
|
dependencies {
|
|
testApi(project(":kotlin-scripting-jvm"))
|
|
testApi(project(":kotlin-scripting-compiler-impl"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" {}
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
testsJar()
|