aboutsummaryrefslogtreecommitdiff
path: root/dokka-runners/dokkatoo/modules/dokkatoo-plugin/src/testFixtures/kotlin/kotestConditions.kt
blob: 7b692afbc855e308377d04da1b95e40fdd329027 (plain)
1
2
3
4
5
6
7
8
9
10
package org.jetbrains.dokka.dokkatoo.utils

import io.kotest.core.annotation.EnabledCondition
import io.kotest.core.spec.Spec
import kotlin.reflect.KClass

class NotWindowsCondition : EnabledCondition {
  override fun enabled(kclass: KClass<out Spec>): Boolean =
    "win" !in System.getProperty("os.name").lowercase()
}