Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ clikt = "5.1.0"
gradle-api = "8.11.1"
junit-jupiter = "5.11.4"
kctfork = "0.7.1"
kotest = "4.6.4"
kotest = "6.2.1"
kotlin = "2.2.0"
kotlinx-serialization = "1.11.0"
lombok = "1.18.46"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ package org.scip_code.scip_java.kotlinc.test
import com.tschuchort.compiletesting.KotlinCompilation
import com.tschuchort.compiletesting.PluginOption
import com.tschuchort.compiletesting.SourceFile
import io.kotest.assertions.assertSoftly
import io.kotest.assertions.fail
import io.kotest.assertions.withClue
import io.kotest.matchers.collections.shouldContain
import io.kotest.matchers.collections.shouldContainAll
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import java.io.File
Expand Down Expand Up @@ -103,9 +101,7 @@ class AnalyzerTest {
}
},
)
assertSoftly(document.occurrencesList) {
withClue(this) { occurrences.forEach(::shouldContain) }
}
document.occurrencesList.shouldContainAll(*occurrences)

val symbols =
arrayOf(
Expand All @@ -120,7 +116,7 @@ class AnalyzerTest {
signatureText = "public final fun foo(): Unit"
},
)
assertSoftly(document.symbolsList) { withClue(this) { symbols.forEach(::shouldContain) } }
document.symbolsList.shouldContainAll(*symbols)
}

@Test
Expand Down Expand Up @@ -189,9 +185,7 @@ class AnalyzerTest {
}
},
)
assertSoftly(document.occurrencesList) {
withClue(this) { occurrences.forEach(::shouldContain) }
}
document.occurrencesList.shouldContainAll(*occurrences)
}

@Test
Expand Down Expand Up @@ -279,9 +273,7 @@ class AnalyzerTest {
}
},
)
assertSoftly(document.occurrencesList) {
withClue(this) { occurrences.forEach(::shouldContain) }
}
document.occurrencesList.shouldContainAll(*occurrences)

val symbols =
arrayOf(
Expand All @@ -306,7 +298,7 @@ class AnalyzerTest {
signatureText = "public final fun localClassMethod(): Unit"
},
)
assertSoftly(document.symbolsList) { withClue(this) { symbols.forEach(::shouldContain) } }
document.symbolsList.shouldContainAll(*symbols)
}

@Test
Expand Down Expand Up @@ -412,9 +404,7 @@ class AnalyzerTest {
}
},
)
assertSoftly(document.occurrencesList) {
withClue(this) { occurrences.forEach(::shouldContain) }
}
document.occurrencesList.shouldContainAll(*occurrences)

val symbols =
arrayOf(
Expand All @@ -441,7 +431,7 @@ class AnalyzerTest {
addOverriddenSymbols("sample/Interface#foo().")
},
)
assertSoftly(document.symbolsList) { withClue(this) { symbols.forEach(::shouldContain) } }
document.symbolsList.shouldContainAll(*symbols)
}

@Test
Expand Down Expand Up @@ -627,9 +617,7 @@ class AnalyzerTest {
}
},
)
assertSoftly(document.occurrencesList) {
withClue(this) { occurrences.forEach(::shouldContain) }
}
document.occurrencesList.shouldContainAll(*occurrences)

val symbols =
arrayOf(
Expand Down Expand Up @@ -663,7 +651,7 @@ class AnalyzerTest {
addOverriddenSymbols("sample/Interface#foo().")
},
)
assertSoftly(document.symbolsList) { withClue(this) { symbols.forEach(::shouldContain) } }
document.symbolsList.shouldContainAll(*symbols)
}

@Test
Expand Down Expand Up @@ -732,9 +720,7 @@ class AnalyzerTest {
}
},
)
assertSoftly(document.occurrencesList) {
withClue(this) { occurrences.forEach(::shouldContain) }
}
document.occurrencesList.shouldContainAll(*occurrences)
}

@Test
Expand Down Expand Up @@ -777,9 +763,7 @@ class AnalyzerTest {
}
},
)
assertSoftly(document.occurrencesList) {
withClue(this) { occurrences.forEach(::shouldContain) }
}
document.occurrencesList.shouldContainAll(*occurrences)
}

@Test
Expand Down Expand Up @@ -1310,9 +1294,7 @@ class AnalyzerTest {
},
)

assertSoftly(document.occurrencesList) {
withClue(document.occurrencesList) { occurrences.forEach(::shouldContain) }
}
document.occurrencesList.shouldContainAll(*occurrences)

val symbols =
arrayOf(
Expand All @@ -1323,7 +1305,7 @@ class AnalyzerTest {
}
)

assertSoftly(document.symbolsList) { withClue(this) { symbols.forEach(::shouldContain) } }
document.symbolsList.shouldContainAll(*symbols)
}

@Test
Expand Down Expand Up @@ -1397,9 +1379,7 @@ class AnalyzerTest {
}
},
)
assertSoftly(document.occurrencesList) {
withClue(this) { occurrences.forEach(::shouldContain) }
}
document.occurrencesList.shouldContainAll(*occurrences)

val symbols =
arrayOf(
Expand All @@ -1414,7 +1394,7 @@ class AnalyzerTest {
signatureText = "public final fun foo(): Unit"
},
)
assertSoftly(document.symbolsList) { withClue(this) { symbols.forEach(::shouldContain) } }
document.symbolsList.shouldContainAll(*symbols)
}

@Test
Expand Down
Loading