Refactoring: use daemon by default in gradle tests
This commit is contained in:
+2
-3
@@ -14,9 +14,8 @@ abstract class AbstractKotlinAndroidGradleTests(
|
|||||||
) : BaseGradleIT() {
|
) : BaseGradleIT() {
|
||||||
|
|
||||||
override fun defaultBuildOptions() =
|
override fun defaultBuildOptions() =
|
||||||
BuildOptions(withDaemon = true,
|
super.defaultBuildOptions().copy(androidHome = File("../../../dependencies/android-sdk-for-tests"),
|
||||||
androidHome = File("../../../dependencies/android-sdk-for-tests"),
|
androidGradlePluginVersion = androidGradlePluginVersion)
|
||||||
androidGradlePluginVersion = androidGradlePluginVersion)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ abstract class BaseGradleIT {
|
|||||||
|
|
||||||
protected var workingDir = File(".")
|
protected var workingDir = File(".")
|
||||||
|
|
||||||
protected open fun defaultBuildOptions(): BuildOptions = BuildOptions(withDaemon = false)
|
protected open fun defaultBuildOptions(): BuildOptions = BuildOptions(withDaemon = true)
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
fun setUp() {
|
fun setUp() {
|
||||||
|
|||||||
+1
-2
@@ -1,12 +1,11 @@
|
|||||||
package org.jetbrains.kotlin.gradle
|
package org.jetbrains.kotlin.gradle
|
||||||
|
|
||||||
import org.gradle.api.logging.LogLevel
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
class SimpleKotlinGradleIT : BaseGradleIT() {
|
class SimpleKotlinGradleIT : BaseGradleIT() {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private val GRADLE_VERSION = "2.3"
|
private const val GRADLE_VERSION = "2.10"
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
-3
@@ -12,9 +12,6 @@ class KaptIT: BaseGradleIT() {
|
|||||||
private const val GRADLE_VERSION = "2.14.1"
|
private const val GRADLE_VERSION = "2.14.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun defaultBuildOptions(): BuildOptions =
|
|
||||||
super.defaultBuildOptions().copy(withDaemon = true)
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testSimple() {
|
fun testSimple() {
|
||||||
val project = Project("kaptSimple", GRADLE_VERSION)
|
val project = Project("kaptSimple", GRADLE_VERSION)
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ abstract class KaptIncrementalBaseIT(val shouldUseStubs: Boolean): BaseGradleIT(
|
|||||||
arrayOf("A", "funA", "valA", "funUtil", "valUtil", "B", "funB", "valB", "useB")
|
arrayOf("A", "funA", "valA", "funUtil", "valUtil", "B", "funB", "valB", "useB")
|
||||||
|
|
||||||
override fun defaultBuildOptions(): BuildOptions =
|
override fun defaultBuildOptions(): BuildOptions =
|
||||||
super.defaultBuildOptions().copy(withDaemon = true, incremental = true)
|
super.defaultBuildOptions().copy(incremental = true)
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testBasic() {
|
fun testBasic() {
|
||||||
|
|||||||
-3
@@ -16,9 +16,6 @@ class KotlinGradleIT: BaseGradleIT() {
|
|||||||
private const val GRADLE_VERSION = "2.10"
|
private const val GRADLE_VERSION = "2.10"
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun defaultBuildOptions(): BuildOptions =
|
|
||||||
super.defaultBuildOptions().copy(withDaemon = true)
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testCrossCompile() {
|
fun testCrossCompile() {
|
||||||
val project = Project("kotlinJavaProject", GRADLE_VERSION)
|
val project = Project("kotlinJavaProject", GRADLE_VERSION)
|
||||||
|
|||||||
+2
-2
@@ -40,8 +40,8 @@ class KotlinGradlePluginJpsParametrizedCLIOnly : BaseIncrementalGradleIT() {
|
|||||||
JpsTestProject(buildLogFinder, jpsResourcesPath, relativePath).performAndAssertBuildStages(weakTesting = true)
|
JpsTestProject(buildLogFinder, jpsResourcesPath, relativePath).performAndAssertBuildStages(weakTesting = true)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun defaultBuildOptions(): BuildOptions =
|
override fun defaultBuildOptions() =
|
||||||
BuildOptions(withDaemon = true, incremental = true)
|
super.defaultBuildOptions().copy(incremental = true)
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user