aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/TestUtil.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/TestUtil.kt')
-rw-r--r--src/main/kotlin/util/TestUtil.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/util/TestUtil.kt b/src/main/kotlin/util/TestUtil.kt
index 68a406f..2d38f35 100644
--- a/src/main/kotlin/util/TestUtil.kt
+++ b/src/main/kotlin/util/TestUtil.kt
@@ -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.")
+ }
}