1 2 3 4 5
package moe.nea.firmament.util object TestUtil { val isInTest = Thread.currentThread().stackTrace.any { it.className.startsWith("org.junit.") } }