Files
atrium/samples/jvm/spek/build.gradle.kts

44 lines
1.2 KiB
Kotlin

// Example project to show how to use Atrium in combination with Spek
// For more information on how to setup Atrium for a JVM project -> https://github.com/robstoll/atrium#jvm
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
val atriumVersion = "0.16.0"
val spekVersion = "2.0.15"
plugins {
kotlin("jvm") version "1.5.20"
}
group = "org.atriumlib.samples"
version = "0.0.1"
repositories {
mavenCentral()
}
dependencies {
//spek requires jdk8, define dependency to stdlib-jdk at least in test
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// setup for Atrium:
// for infix-api -> change artifact-id to 'atrium-infix-en_GB'
testImplementation("ch.tutteli.atrium:atrium-fluent-en_GB:$atriumVersion")
// setup for 'spek', for some kotlin-version
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion")
}
tasks.test {
useJUnitPlatform {
includeEngines("spek2")
}
testLogging {
exceptionFormat = TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
}
}