[PowerAssert] Add codegen tests

This commit is contained in:
Brian Norman
2023-11-17 12:31:19 -06:00
committed by Space Team
parent 9f5589614a
commit 305c53dd6e
164 changed files with 2308 additions and 1 deletions
+10
View File
@@ -5,6 +5,8 @@ plugins {
id("jps-compatible")
}
val junit5Classpath by configurations.creating
dependencies {
embedded(project(":kotlin-power-assert-compiler-plugin.backend")) { isTransitive = false }
embedded(project(":kotlin-power-assert-compiler-plugin.cli")) { isTransitive = false }
@@ -18,6 +20,8 @@ dependencies {
testRuntimeOnly(commonDependency("org.codehaus.woodstox:stax2-api"))
testRuntimeOnly(commonDependency("com.fasterxml:aalto-xml"))
junit5Classpath(libs.junit.jupiter.api)
}
optInToExperimentalCompilerApi()
@@ -41,4 +45,10 @@ projectTest(parallel = true) {
dependsOn(":dist")
workingDir = rootDir
useJUnitPlatform()
val localJunit5Classpath: FileCollection = junit5Classpath
doFirst {
systemProperty("junit5.classpath", localJunit5Classpath.files.joinToString(",") { it.absolutePath })
}
}