Remove redundant test
`testMultiModuleICNonAndroidModuleIsChanged` already tested android and non-android change
This commit is contained in:
-19
@@ -221,25 +221,6 @@ fun getSomething() = 10
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testMultiModuleIC() {
|
fun testMultiModuleIC() {
|
||||||
val project = Project("AndroidProject")
|
|
||||||
val options = defaultBuildOptions().copy(incremental = true)
|
|
||||||
|
|
||||||
project.build("assembleDebug", options = options) {
|
|
||||||
assertSuccessful()
|
|
||||||
}
|
|
||||||
|
|
||||||
val libUtilKt = project.projectDir.getFileByName("libUtil.kt")
|
|
||||||
libUtilKt.modify { it.replace("fun libUtil(): String", "fun libUtil(): CharSequence") }
|
|
||||||
|
|
||||||
project.build("assembleDebug", options = options) {
|
|
||||||
assertSuccessful()
|
|
||||||
val affectedSources = project.projectDir.getFilesByNames("libUtil.kt", "MainActivity2.kt")
|
|
||||||
assertCompiledKotlinSources(project.relativize(affectedSources), weakTesting = false)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
fun testMultiModuleICNonAndroidModuleIsChanged() {
|
|
||||||
val project = Project("AndroidIncrementalMultiModule")
|
val project = Project("AndroidIncrementalMultiModule")
|
||||||
val options = defaultBuildOptions().copy(incremental = true, kotlinDaemonDebugPort = null)
|
val options = defaultBuildOptions().copy(incremental = true, kotlinDaemonDebugPort = null)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user