[Gradle] Revert removed testAndroidExtensionsIncremental AGP IT

It was disabled because of KT-38622 and then accidentally removed. This commit reverts the removal and makes the test to use the experimental classpath snapshots IC
This commit is contained in:
Alexander Likhachev
2022-08-24 13:51:56 +02:00
parent 99fe242b38
commit 3d8d3465d9
@@ -1124,6 +1124,31 @@ abstract class AbstractKotlinAndroidGradleTests : BaseGradleIT() {
}
}
@Test
fun testAndroidExtensionsIncremental() {
val project = Project("AndroidExtensionsProject")
val options = defaultBuildOptions().copy(incremental = true, useClasspathSnapshot = true)
project.build("assembleDebug", options = options) {
assertSuccessful()
val affectedSources = project.projectDir.getFilesByNames(
"MyActivity.kt", "noLayoutUsages.kt"
)
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths)
}
val activityLayout = File(project.projectDir, "app/src/main/res/layout/activity_main.xml")
activityLayout.modify { it.replace("textView", "newTextView") }
project.build("assembleDebug", options = options) {
assertFailed()
val affectedSources = project.projectDir.getFilesByNames("MyActivity.kt")
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths)
}
}
@Test
fun testAndroidExtensionsManyVariants() {
val project = Project("AndroidExtensionsManyVariants")