xpipe/gradle_scripts/junit.gradle
Christopher Schnick 20a334912a Many small fixes
2023-01-20 00:36:42 +01:00

27 lines
712 B
Groovy

dependencies {
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
}
test {
useJUnitPlatform()
testLogging {
exceptionFormat = 'full'
showExceptions = true
showStandardStreams = true
}
}
sourceSets {
test {
if (System.getProperty('idea.active') == null) {
java {
srcDirs = []
}
}
output.resourcesDir("$buildDir/classes/java/test")
}
}