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