mirror of
https://github.com/jlengrand/atrium.git
synced 2026-03-10 08:01:19 +00:00
Bumps `junitVersion` from 5.7.2 to 5.8.1. Updates `junit-jupiter-api` from 5.7.2 to 5.8.1 - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](https://github.com/junit-team/junit5/compare/r5.7.2...r5.8.1) Updates `junit-jupiter-engine` from 5.7.2 to 5.8.1 - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](https://github.com/junit-team/junit5/compare/r5.7.2...r5.8.1) --- updated-dependencies: - dependency-name: org.junit.jupiter:junit-jupiter-api dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.junit.jupiter:junit-jupiter-engine dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
44 lines
1.2 KiB
Kotlin
44 lines
1.2 KiB
Kotlin
// Example project to show how to use Atrium in combination with JUnit5
|
|
// 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 junitVersion = "5.8.1"
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.5.31"
|
|
}
|
|
|
|
group = "org.atriumlib.samples"
|
|
version = "0.0.1"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// junit5 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 junit5
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform {
|
|
includeEngines("junit-jupiter")
|
|
}
|
|
testLogging {
|
|
exceptionFormat = TestExceptionFormat.FULL
|
|
showExceptions = true
|
|
showCauses = true
|
|
showStackTraces = true
|
|
}
|
|
}
|