To run the code from this chapter, we just need IntelliJ IDEA and Git installed. We also need to add dependencies on the JUnit test engine, the Spek framework, and the Kotlin test library. You should add the following line to the dependencies section of the buildscript block in your build.gradle file:
buildscript {
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
}
}
We should also apply the junit.gradle plugin by using the following lines:
apply plugin: 'org.junit.platform.gradle.plugin'
junitPlatform {
filters {
engines {
include 'spek'
}
}
}
To make the Gradle build system able to find the Spek repository, we should add this line:
repositories {
maven { url "http://dl.bintray.com/jetbrains/spek" }
}
The following lines should be added to...