Skip to content

Commit defce08

Browse files
committed
Move to @ZacSweers fork of kotlin-compile-testing
1 parent 5fc4044 commit defce08

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ smithy-version = "1.51.0"
2323
# testing
2424
junit-version = "5.10.5"
2525
kotest-version = "5.9.1"
26-
kotlin-compile-testing-version = "1.6.0"
26+
kotlin-compile-testing-version = "0.7.0"
2727
kotlinx-benchmark-version = "0.4.12"
2828
kotlinx-serialization-version = "1.7.3"
2929
docker-java-version = "3.4.0"
@@ -80,7 +80,7 @@ smithy-smoke-test-traits = { module = "software.amazon.smithy:smithy-smoke-test-
8080
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-version" }
8181
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit-version" }
8282

83-
kotlin-compile-testing = {module = "com.github.tschuchortdev:kotlin-compile-testing", version.ref = "kotlin-compile-testing-version" }
83+
kotlin-compile-testing = {module = "dev.zacsweers.kctfork:core", version.ref = "kotlin-compile-testing-version" }
8484
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest-version" }
8585
kotest-assertions-core-jvm = { module = "io.kotest:kotest-assertions-core-jvm", version.ref = "kotest-version" }
8686
kotlinx-benchmark-runtime = { module = "org.jetbrains.kotlinx:kotlinx-benchmark-runtime", version.ref = "kotlinx-benchmark-version" }

tests/compile/src/test/kotlin/software/amazon/smithy/kotlin/codegen/ApiEvolutionTest.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package software.amazon.smithy.kotlin.codegen
66

77
import software.amazon.smithy.kotlin.codegen.util.asSmithy
88
import software.amazon.smithy.kotlin.codegen.util.testModelChangeAgainstSource
9-
import kotlin.test.Ignore
109
import kotlin.test.Test
1110
import kotlin.test.assertTrue
1211

@@ -21,7 +20,6 @@ import kotlin.test.assertTrue
2120
* Example: "Wrote generated SDK to /tmp/sdk-codegen-1606867139716"
2221
*/
2322
class ApiEvolutionTest {
24-
@Ignore // Disabled until kotlin-compile-testing supports Kotlin 2.1.0
2523
@Test
2624
fun `client calling operation with no input to operation with empty input compiles`() {
2725
val modelV1 = """
@@ -81,7 +79,6 @@ class ApiEvolutionTest {
8179
}
8280
}
8381

84-
@Ignore // Disabled until kotlin-compile-testing supports Kotlin 2.1.0
8582
@Test
8683
fun `client calling operation with empty input to operation with input containing members compiles`() {
8784
val modelV1 = """
@@ -147,7 +144,6 @@ class ApiEvolutionTest {
147144
}
148145
}
149146

150-
@Ignore // Disabled until kotlin-compile-testing supports Kotlin 2.1.0
151147
@Test
152148
fun `client calling operation with no output to operation with empty output compiles`() {
153149
val modelV1 = """
@@ -207,7 +203,6 @@ class ApiEvolutionTest {
207203
}
208204
}
209205

210-
@Ignore // Disabled until kotlin-compile-testing supports Kotlin 2.1.0
211206
@Test
212207
fun `client calling operation with empty output to operation with output containing members compiles`() {
213208
val modelV1 = """

tests/compile/src/test/kotlin/software/amazon/smithy/kotlin/codegen/SmithySdkTest.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class SmithySdkTest {
2525
// Max number of warnings the compiler can issue as a result of compiling SDK with kitchen sink model.
2626
private val warningThreshold = 3
2727

28-
@Ignore // Disabled until kotlin-compile-testing supports Kotlin 2.1.0
2928
@Test
3029
fun `white label sdk compiles without errors`() {
3130
val model = javaClass.getResource("/kitchen-sink-model.smithy")!!.asSmithy()
@@ -56,7 +55,6 @@ class SmithySdkTest {
5655
assertTrue(result <= warningThreshold, "Compiler warnings ($result) breached threshold of $warningThreshold\n$formatted")
5756
}
5857

59-
@Ignore // Disabled until kotlin-compile-testing supports Kotlin 2.1.0
6058
@Test
6159
fun `white label sdk compiles with language keywords as model member names`() {
6260
val fooMembers = hardReservedWords
@@ -100,7 +98,6 @@ class SmithySdkTest {
10098
assertEquals(KotlinCompilation.ExitCode.OK, compilationResult.exitCode, compileOutputStream.toString())
10199
}
102100

103-
@Ignore // Disabled until kotlin-compile-testing supports Kotlin 2.1.0
104101
@Test
105102
fun `it has non conflicting document deserializer for exceptions`() {
106103
// test that an exception is re-used not as an error but as part of some other payload (ticket: 176989575)
@@ -139,7 +136,6 @@ class SmithySdkTest {
139136
assertEquals(KotlinCompilation.ExitCode.OK, compilationResult.exitCode, compileOutputStream.toString())
140137
}
141138

142-
@Ignore // Disabled until kotlin-compile-testing supports Kotlin 2.1.0
143139
@Test
144140
fun `it compiles models with nested unions`() {
145141
val model = """
@@ -181,7 +177,6 @@ class SmithySdkTest {
181177
}
182178

183179
// https://github.com/smithy-lang/smithy-kotlin/issues/1125
184-
@Ignore // Disabled until kotlin-compile-testing supports Kotlin 2.1.0
185180
@Test
186181
fun `it compiles models with string enums`() {
187182
val model = """

0 commit comments

Comments
 (0)