Prefer Kotlin Gradle test run configurations when possible (KT-33787)

This commit is contained in:
Yan Zhulanow
2019-10-23 19:20:22 +09:00
parent 214810ca01
commit 987307cf92
8 changed files with 199 additions and 7 deletions
@@ -0,0 +1,15 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testCompile "junit:junit:4.12"
}
@@ -0,0 +1,9 @@
import org.junit.Test;
public class MyTest {
@Test
public void testA() {}
@Test
public void testB() {}
}
@@ -0,0 +1,11 @@
import org.junit.Test
class MyKotlinTest {
@Test
fun testA() {
}
@Test
fun testB() {
}
}