[Test] Migrate SpecTestsConsistencyTest to JUnit5

This commit is contained in:
Dmitriy Novozhilov
2021-07-05 10:30:09 +03:00
parent c0c9e4a114
commit d473d22d8c
2 changed files with 14 additions and 21 deletions
+4 -4
View File
@@ -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") {