[Build] Add generating and running new compiler tests to gradle

This commit is contained in:
Dmitriy Novozhilov
2020-12-04 13:28:25 +03:00
parent 3bd3545a05
commit d7224ad63e
5 changed files with 10 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
<option value=":compiler:tests-against-klib:generateTests" />
<option value=":js:js.tests:generateTests" />
<option value=":core:descriptors.runtime:generateTests" />
<option value=":compiler:tests-common-new:generateTests" />
</list>
</option>
<option name="vmOptions" value="" />
@@ -22,4 +23,4 @@
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<method />
</configuration>
</component>
</component>

View File

@@ -630,6 +630,7 @@ tasks {
dependsOn("dist")
dependsOn(
":compiler:test",
":compiler:tests-common-new:test",
":compiler:container:test",
":compiler:tests-java8:test",
":compiler:tests-spec:test",
@@ -870,6 +871,7 @@ tasks {
":idea:idea-gradle:test",
":idea:test",
":compiler:test",
":compiler:container:test",
":js:js.tests:test"
)

View File

@@ -64,3 +64,5 @@ projectTest(parallel = true) {
}
testsJar()
val generateTests by generator("org.jetbrains.kotlin.test.generators.GenerateNewCompilerTestsKt")

View File

@@ -7,6 +7,7 @@ plugins {
val depenencyProjects = arrayOf(
":generators",
":compiler",
":compiler:tests-common-new",
":js:js.tests",
":compiler:tests-java8",
":core:descriptors.runtime"
@@ -24,4 +25,4 @@ dependencies {
sourceSets {
"main" { }
"test" { projectDefault() }
}
}

View File

@@ -7,12 +7,14 @@ package org.jetbrains.kotlin.pill.generateAllTests;
import org.jetbrains.kotlin.generators.tests.*;
import org.jetbrains.kotlin.generators.InconsistencyChecker;
import org.jetbrains.kotlin.test.generators.GenerateNewCompilerTestsKt;
import java.util.List;
public class Main {
public static void main(String[] args) {
GenerateCompilerTestsKt.main(args);
GenerateNewCompilerTestsKt.main(args);
GenerateTestsKt.main(args);
GenerateJsTestsKt.main(args);
GenerateJava8TestsKt.main(args);