This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 8d34164 committed Feb 25, 2025 · 1 / 3
1 parent cca0ac6 commit 8d34164 Copy full SHA for 8d34164
File tree 2 files changed +3
-11
lines changed
integration-tests/src/test/kotlin/com/google/devtools/ksp/test
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,7 @@ class IncrementalCPIT(val useKSP2: Boolean) {
105
105
File (project.root, src).writeText(" package p1\n\n fun MyTopFunc1(): Int = 1" )
106
106
gradleRunner.withArguments(" assemble" ).build().let { result ->
107
107
// Value changes should not result in re-processing.
108
- Assert .assertEquals(TaskOutcome .SUCCESS , result.task(" :workload:kspKotlin" )?.outcome)
109
- val dirties = result.output.lines().filter { it.startsWith(" w: [ksp]" ) }.toSet()
110
- // Non-signature changes should not affect anything.
111
- Assert .assertEquals(emptyMessage, dirties)
108
+ Assert .assertEquals(TaskOutcome .UP_TO_DATE , result.task(" :workload:kspKotlin" )?.outcome)
112
109
}
113
110
}
114
111
@@ -151,10 +148,7 @@ class IncrementalCPIT(val useKSP2: Boolean) {
151
148
File (project.root, src).writeText(" package p1\n\n val MyTopProp1: Int = 1" )
152
149
gradleRunner.withArguments(" assemble" ).build().let { result ->
153
150
// Value changes should not result in re-processing.
154
- Assert .assertEquals(TaskOutcome .SUCCESS , result.task(" :workload:kspKotlin" )?.outcome)
155
- val dirties = result.output.lines().filter { it.startsWith(" w: [ksp]" ) }.toSet()
156
- // Non-signature changes should not affect anything.
157
- Assert .assertEquals(emptyMessage, dirties)
151
+ Assert .assertEquals(TaskOutcome .UP_TO_DATE , result.task(" :workload:kspKotlin" )?.outcome)
158
152
}
159
153
}
160
154
Original file line number Diff line number Diff line change @@ -48,9 +48,7 @@ class IncrementalEmptyCPIT(val useKSP2: Boolean) {
48
48
File (project.root, src).writeText(" package p1\n\n val MyTopProp1: Int = 1" )
49
49
gradleRunner.withArguments(" assemble" ).build().let { result ->
50
50
// Value changes will result in re-processing of aggregating outputs.
51
- Assert .assertEquals(TaskOutcome .SUCCESS , result.task(" :workload:kspKotlin" )?.outcome)
52
- val dirties = result.output.lines().filter { it.startsWith(" w: [ksp]" ) }.toSet()
53
- Assert .assertEquals(expectedDirties, dirties)
51
+ Assert .assertEquals(TaskOutcome .UP_TO_DATE , result.task(" :workload:kspKotlin" )?.outcome)
54
52
}
55
53
}
56
54
}
You can’t perform that action at this time.
0 commit comments