Minor: format android gradle test
This commit is contained in:
+47
-47
@@ -4,58 +4,58 @@ import org.junit.Ignore
|
||||
import org.junit.Test
|
||||
|
||||
@Ignore("Requires Android SDK")
|
||||
class KotlinAndroidGradleIT: BaseGradleIT() {
|
||||
class KotlinAndroidGradleIT : BaseGradleIT() {
|
||||
|
||||
override fun defaultBuildOptions() =
|
||||
BuildOptions(withDaemon = true, assertThreadLeaks = false)
|
||||
override fun defaultBuildOptions() =
|
||||
BuildOptions(withDaemon = true, assertThreadLeaks = false)
|
||||
|
||||
@Test
|
||||
fun testSimpleCompile() {
|
||||
val project = Project("AndroidProject", "2.3")
|
||||
@Test
|
||||
fun testSimpleCompile() {
|
||||
val project = Project("AndroidProject", "2.3")
|
||||
|
||||
project.build("build") {
|
||||
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")
|
||||
}
|
||||
project.build("build") {
|
||||
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
|
||||
fun testModuleNameAndroid() {
|
||||
val project = Project("AndroidProject", "2.3")
|
||||
|
||||
Reference in New Issue
Block a user