Add auto test in gradle (light tree)

Additionally removed benchmarks from auto test because they require manual setting.
Instruction was also added.
This commit is contained in:
Ivan Cilcic
2019-07-31 14:20:32 +03:00
committed by Mikhail Glukhikh
parent 2ca7978544
commit f3a7db2428
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -503,6 +503,7 @@ tasks {
dependsOn(":compiler:fir:psi2fir:test")
dependsOn(":compiler:fir:resolve:test")
dependsOn(":compiler:fir:fir2ir:test")
dependsOn(":compiler:fir:lightTree:test")
}
create("scriptingTest") {
+1
View File
@@ -37,6 +37,7 @@ sourceSets {
projectTest {
workingDir = rootDir
exclude("**/benchmark/**")
}
val compactClasspath by tasks.creating(Jar::class) {
@@ -14,6 +14,13 @@ import org.openjdk.jmh.annotations.*
import java.io.File
import java.util.concurrent.TimeUnit
/**
* This class is base for all benchmarks.
*
* To run benchmarks use gradle and consistently run next tasks:
* 1. jmhBytecode
* 2. jmhExec
*/
@BenchmarkMode(Mode.SingleShotTime)
@Warmup(iterations = 10, batchSize = 1)
@Measurement(iterations = 10, batchSize = 1)