[Test] Migrate SpecTestsConsistencyTest to JUnit5
This commit is contained in:
@@ -7,10 +7,8 @@ dependencies {
|
||||
testCompile(projectTests(":compiler"))
|
||||
testImplementation(projectTests(":compiler:test-infrastructure"))
|
||||
testImplementation(projectTests(":compiler:tests-common-new"))
|
||||
testRuntimeOnly(platform("org.junit:junit-bom:5.7.0"))
|
||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter")
|
||||
|
||||
testCompileOnly(intellijDep()) {
|
||||
testCompile(intellijDep()) {
|
||||
includeJars("groovy", "groovy-xml", rootProject = rootProject)
|
||||
}
|
||||
testCompile(intellijDep()) {
|
||||
@@ -21,6 +19,8 @@ dependencies {
|
||||
compile("org.jsoup:jsoup:1.10.3")
|
||||
if (isIdeaActive) testRuntimeOnly(files("${rootProject.projectDir}/dist/kotlinc/lib/kotlin-reflect.jar"))
|
||||
testRuntime(project(":kotlin-reflect"))
|
||||
|
||||
testApiJUnit5(vintageEngine = true)
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -42,10 +42,10 @@ val printSpecTestsStatistic by generator("org.jetbrains.kotlin.spec.utils.tasks.
|
||||
|
||||
val specConsistencyTests by task<Test> {
|
||||
workingDir = rootDir
|
||||
|
||||
filter {
|
||||
includeTestsMatching("org.jetbrains.kotlin.spec.consistency.SpecTestsConsistencyTest")
|
||||
}
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.named<Test>("test") {
|
||||
|
||||
Reference in New Issue
Block a user