diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-27 16:04:05 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-27 16:05:19 +0100 |
commit | ee0526ac67e093f77d17747d9316765b2db272a2 (patch) | |
tree | 1e2f8a26475afcc8c0d36b85068e1a2b282410ab /src/main/kotlin/util/TestUtil.kt | |
parent | 9df1f12970dafdbf4cb13c76c1df1caed66f4a59 (diff) | |
download | Firmament-ee0526ac67e093f77d17747d9316765b2db272a2.tar.gz Firmament-ee0526ac67e093f77d17747d9316765b2db272a2.tar.bz2 Firmament-ee0526ac67e093f77d17747d9316765b2db272a2.zip |
test: Use kotest
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.") + } } |