[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:
+25
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user