Skip to content

Commit

Permalink
Adjust incremental cache tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-yuan committed Oct 2, 2024
1 parent 2b23790 commit 74fcbd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,9 @@ class KMPImplementedIT(val useKSP2: Boolean) {
setup(shouldFail = true)
gradleRunner.withArguments("compileKotlinJvm").buildAndFail()

// Triggers the caching issue
// Should not trigger the caching issue
setup(shouldFail = false)
gradleRunner.withArguments("compileKotlinJvm")
.buildAndFail().let { result ->
println("OUTPUT START")
println(result.output)
Assert.assertTrue(result.output.contains("id-to-file.tab] is already registered"))
}
gradleRunner.withArguments("compileKotlinJvm").build()
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.google.devtools.ksp.test

import org.gradle.testkit.runner.GradleRunner
import org.junit.Assert
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
Expand Down Expand Up @@ -43,14 +42,9 @@ class KotlinInjectIT(val useKSP2: Boolean) {
setup(shouldFail = true)
gradleRunner.withArguments("compileKotlinJvm").buildAndFail()

// Triggers the caching issue
// Should not trigger the caching issue
setup(shouldFail = false)
gradleRunner.withArguments("compileKotlinJvm")
.buildAndFail().let { result ->
println("OUTPUT START")
println(result.output)
Assert.assertTrue(result.output.contains("id-to-file.tab] is already registered"))
}
gradleRunner.withArguments("compileKotlinJvm").build()
}

companion object {
Expand Down

0 comments on commit 74fcbd8

Please sign in to comment.