Import Kotlin JUnit run configuration settings from Gradle
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
|
||||
id "org.jetbrains.gradle.plugin.idea-ext" version "0.7"
|
||||
}
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||
testCompile "junit:junit:4.12"
|
||||
}
|
||||
|
||||
import org.jetbrains.gradle.ext.*
|
||||
|
||||
idea {
|
||||
project {
|
||||
settings {
|
||||
runConfigurations {
|
||||
defaults(JUnit) {
|
||||
vmParameters = "-Dfoo=bar"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
Executable
+7
@@ -0,0 +1,7 @@
|
||||
import org.junit.Test
|
||||
|
||||
class MyKotlinTest {
|
||||
@Test
|
||||
fun testA() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user