diff options
Diffstat (limited to 'src/main/kotlin/util/TestUtil.kt')
-rw-r--r-- | src/main/kotlin/util/TestUtil.kt | 5 |
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.") + } } |