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

48 lines
1.2 KiB
Groovy

// 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
buildscript {
ext {
atrium_version = '0.15.0'
spek_version = '2.0.15'
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.30'
}
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:$atrium_version"
// setup for 'spek', for some kotlin-version
testImplementation "org.spekframework.spek2:spek-dsl-jvm:$spek_version"
testRuntimeOnly "org.spekframework.spek2:spek-runner-junit5:$spek_version"
}
test {
useJUnitPlatform {
includeEngines 'spek2'
}
testLogging {
exceptionFormat TestExceptionFormat.FULL
showExceptions true
showCauses true
showStackTraces true
}
}