test: Use kotest
This commit is contained in:
@@ -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.")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user