October 2018
Intermediate to advanced
370 pages
9h 15m
English
With the Kotlin script, we should add the same dependencies. Your build.gradle.kts file will look as follows:
import org.gradle.api.plugins.ExtensionAwareimport org.junit.platform.gradle.plugin.FiltersExtensionimport org.junit.platform.gradle.plugin.EnginesExtensionimport org.junit.platform.gradle.plugin.JUnitPlatformExtensionbuildscript { dependencies { classpath("org.junit.platform:junit-platform-gradle-plugin:1.0.0") }}apply { plugin("org.junit.platform.gradle.plugin")}configure { filters { engines { include("spek") } }}dependencies { testCompile("org.jetbrains.spek:spek-api:1.1.5") testRuntime("org.jetbrains.spek:spek-junit-platform-engine:1.1.5")}fun JUnitPlatformExtension.filters(setup: FiltersExtension ...
Read now
Unlock full access