Skip to content

Commit

Permalink
Add --stracktrace to the failing test
Browse files Browse the repository at this point in the history
(cherry picked from commit 88c2886)
  • Loading branch information
ansman authored and KSP Auto Pick committed Sep 5, 2024
1 parent 3fc773f commit c32a756
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ class BuildCacheIncrementalIT(useKSP2: Boolean) {
val k1 = "workload/src/main/kotlin/p1/K1.kt"
val k2 = "workload/src/main/kotlin/p1/K2.kt"

gradleRunner.withArguments("assemble").build()
gradleRunner.withArguments("assemble", "--stacktrace").build()

File(project.root, k2).writeText(
"package p1\n\n@MyAnnotation\nclass K2\n"
)
gradleRunner.withArguments("assemble").build()
gradleRunner.withArguments("assemble", "--stacktrace").build()

File(project.root, k2).delete()
gradleRunner.withArguments("assemble").build()
gradleRunner.withArguments("assemble", "--stacktrace").build()

File(project.root, k1).writeText(
"package p1\n\nclass K1(val foo: String)\n"
)
gradleRunner.withArguments("assemble").build()
gradleRunner.withArguments("assemble", "--stacktrace").build()
}

companion object {
Expand Down

0 comments on commit c32a756

Please sign in to comment.