test: Use kotest

This commit is contained in:
Linnea Gräf
2024-11-27 16:04:05 +01:00
parent 9df1f12970
commit ee0526ac67
14 changed files with 371 additions and 27 deletions

View File

@@ -1,5 +1,8 @@
package moe.nea.firmament.util
object TestUtil {
val isInTest = Thread.currentThread().stackTrace.any { it.className.startsWith("org.junit.") }
val isInTest =
Thread.currentThread().stackTrace.any {
it.className.startsWith("org.junit.") || it.className.startsWith("io.kotest.")
}
}