Minor: format android gradle test
This commit is contained in:
+47
-47
@@ -4,58 +4,58 @@ import org.junit.Ignore
|
|||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
@Ignore("Requires Android SDK")
|
@Ignore("Requires Android SDK")
|
||||||
class KotlinAndroidGradleIT: BaseGradleIT() {
|
class KotlinAndroidGradleIT : BaseGradleIT() {
|
||||||
|
|
||||||
override fun defaultBuildOptions() =
|
override fun defaultBuildOptions() =
|
||||||
BuildOptions(withDaemon = true, assertThreadLeaks = false)
|
BuildOptions(withDaemon = true, assertThreadLeaks = false)
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testSimpleCompile() {
|
fun testSimpleCompile() {
|
||||||
val project = Project("AndroidProject", "2.3")
|
val project = Project("AndroidProject", "2.3")
|
||||||
|
|
||||||
project.build("build") {
|
project.build("build") {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
assertContains(":Lib:compileReleaseKotlin",
|
assertContains(":Lib:compileReleaseKotlin",
|
||||||
":compileFlavor1DebugKotlin",
|
":compileFlavor1DebugKotlin",
|
||||||
":compileFlavor2DebugKotlin",
|
":compileFlavor2DebugKotlin",
|
||||||
":compileFlavor1JnidebugKotlin",
|
":compileFlavor1JnidebugKotlin",
|
||||||
":compileFlavor1ReleaseKotlin",
|
":compileFlavor1ReleaseKotlin",
|
||||||
":compileFlavor2JnidebugKotlin",
|
":compileFlavor2JnidebugKotlin",
|
||||||
":compileFlavor2ReleaseKotlin",
|
":compileFlavor2ReleaseKotlin",
|
||||||
":compileFlavor1Debug",
|
":compileFlavor1Debug",
|
||||||
":compileFlavor2Debug",
|
":compileFlavor2Debug",
|
||||||
":compileFlavor1Jnidebug",
|
":compileFlavor1Jnidebug",
|
||||||
":compileFlavor2Jnidebug",
|
":compileFlavor2Jnidebug",
|
||||||
":compileFlavor1Release",
|
":compileFlavor1Release",
|
||||||
":compileFlavor2Release")
|
":compileFlavor2Release")
|
||||||
}
|
|
||||||
|
|
||||||
// Run the build second time, assert everything is up-to-date
|
|
||||||
project.build("build") {
|
|
||||||
assertSuccessful()
|
|
||||||
assertContains(":Lib:compileReleaseKotlin UP-TO-DATE")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Run the build third time, re-run tasks
|
|
||||||
|
|
||||||
project.build("build", "--rerun-tasks") {
|
|
||||||
assertSuccessful()
|
|
||||||
assertContains(":Lib:compileReleaseKotlin",
|
|
||||||
":compileFlavor1DebugKotlin",
|
|
||||||
":compileFlavor2DebugKotlin",
|
|
||||||
":compileFlavor1JnidebugKotlin",
|
|
||||||
":compileFlavor1ReleaseKotlin",
|
|
||||||
":compileFlavor2JnidebugKotlin",
|
|
||||||
":compileFlavor2ReleaseKotlin",
|
|
||||||
":compileFlavor1Debug",
|
|
||||||
":compileFlavor2Debug",
|
|
||||||
":compileFlavor1Jnidebug",
|
|
||||||
":compileFlavor2Jnidebug",
|
|
||||||
":compileFlavor1Release",
|
|
||||||
":compileFlavor2Release")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Run the build second time, assert everything is up-to-date
|
||||||
|
project.build("build") {
|
||||||
|
assertSuccessful()
|
||||||
|
assertContains(":Lib:compileReleaseKotlin UP-TO-DATE")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Run the build third time, re-run tasks
|
||||||
|
|
||||||
|
project.build("build", "--rerun-tasks") {
|
||||||
|
assertSuccessful()
|
||||||
|
assertContains(":Lib:compileReleaseKotlin",
|
||||||
|
":compileFlavor1DebugKotlin",
|
||||||
|
":compileFlavor2DebugKotlin",
|
||||||
|
":compileFlavor1JnidebugKotlin",
|
||||||
|
":compileFlavor1ReleaseKotlin",
|
||||||
|
":compileFlavor2JnidebugKotlin",
|
||||||
|
":compileFlavor2ReleaseKotlin",
|
||||||
|
":compileFlavor1Debug",
|
||||||
|
":compileFlavor2Debug",
|
||||||
|
":compileFlavor1Jnidebug",
|
||||||
|
":compileFlavor2Jnidebug",
|
||||||
|
":compileFlavor1Release",
|
||||||
|
":compileFlavor2Release")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testModuleNameAndroid() {
|
fun testModuleNameAndroid() {
|
||||||
val project = Project("AndroidProject", "2.3")
|
val project = Project("AndroidProject", "2.3")
|
||||||
|
|||||||
Reference in New Issue
Block a user