Ir al contenido principal
Versión: 5.8.x

Configuración

[Traducción Beta No Oficial]

Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →

El marco de pruebas de Kotest es compatible con JVM, Javascript y Native. Para habilitar Kotest en múltiples plataformas, combina los pasos para cada plataforma como se detalla en las siguientes pestañas.

Kotest on the JVM uses the JUnit Platform gradle plugin. For Gradle 4.6 and higher this is as simple as adding useJUnitPlatform() inside the tasks with type Test and then adding the Kotest junit5 runner dependency.

If you are using Gradle + Groovy then:

test {
useJUnitPlatform()
}

Or if you are using Gradle + Kotlin then:

tasks.withType<Test>().configureEach {
useJUnitPlatform()
}

And then the dependency:

testImplementation 'io.kotest:kotest-runner-junit5:$version'