9856204925
Fix test behaviour with two artifacts of spec on teamcity
53 lines
1.3 KiB
Kotlin
53 lines
1.3 KiB
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testApi(projectTests(":compiler"))
|
|
|
|
testImplementation(projectTests(":compiler:test-infrastructure"))
|
|
testImplementation(projectTests(":compiler:tests-common-new"))
|
|
|
|
testApi(commonDependency("com.google.code.gson:gson"))
|
|
testApi(commonDependency("org.jetbrains.intellij.deps:jdom"))
|
|
|
|
api("org.jsoup:jsoup:1.14.2")
|
|
|
|
testRuntimeOnly(project(":core:descriptors.runtime"))
|
|
|
|
testApiJUnit5(vintageEngine = true)
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
testsJar()
|
|
|
|
projectTest(parallel = true) {
|
|
workingDir = rootDir
|
|
dependsOn(":dist")
|
|
}
|
|
|
|
val generateSpecTests by generator("org.jetbrains.kotlin.spec.utils.tasks.GenerateSpecTestsKt")
|
|
|
|
val generateFeatureInteractionSpecTestData by generator("org.jetbrains.kotlin.spec.utils.tasks.GenerateFeatureInteractionSpecTestDataKt")
|
|
|
|
val printSpecTestsStatistic by generator("org.jetbrains.kotlin.spec.utils.tasks.PrintSpecTestsStatisticKt")
|
|
|
|
val specConsistencyTests by task<Test> {
|
|
workingDir = rootDir
|
|
filter {
|
|
includeTestsMatching("org.jetbrains.kotlin.spec.consistency.SpecTestsConsistencyTest")
|
|
}
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.named<Test>("test") {
|
|
filter {
|
|
excludeTestsMatching("org.jetbrains.kotlin.spec.consistency.SpecTestsConsistencyTest")
|
|
}
|
|
}
|