mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-29 20:25:56 +00:00
feat(build): improve failure logging (#14696)
This commit is contained in:
parent
6a3f31b093
commit
aee04b5680
20
build.gradle
20
build.gradle
@ -87,6 +87,7 @@ plugins {
|
|||||||
id 'com.palantir.docker' version '0.35.0' apply false
|
id 'com.palantir.docker' version '0.35.0' apply false
|
||||||
id 'com.avast.gradle.docker-compose' version '0.17.12'
|
id 'com.avast.gradle.docker-compose' version '0.17.12'
|
||||||
id "com.diffplug.spotless" version "6.23.3"
|
id "com.diffplug.spotless" version "6.23.3"
|
||||||
|
id 'com.adarshr.test-logger' version '4.0.0'
|
||||||
// https://blog.ltgt.net/javax-jakarta-mess-and-gradle-solution/
|
// https://blog.ltgt.net/javax-jakarta-mess-and-gradle-solution/
|
||||||
// TODO id "org.gradlex.java-ecosystem-capabilities" version "1.0"
|
// TODO id "org.gradlex.java-ecosystem-capabilities" version "1.0"
|
||||||
}
|
}
|
||||||
@ -311,6 +312,25 @@ allprojects {
|
|||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
// apply plugin: 'org.gradlex.java-ecosystem-capabilities'
|
// apply plugin: 'org.gradlex.java-ecosystem-capabilities'
|
||||||
|
|
||||||
|
// Apply test-logger plugin for better test output
|
||||||
|
apply plugin: 'com.adarshr.test-logger'
|
||||||
|
|
||||||
|
testlogger {
|
||||||
|
theme 'mocha' // Clean, modern output
|
||||||
|
showExceptions true
|
||||||
|
showStackTraces true
|
||||||
|
showFullStackTraces false
|
||||||
|
showCauses true
|
||||||
|
showSummary true
|
||||||
|
showPassed false // Only show failures for cleaner output
|
||||||
|
showSkipped true
|
||||||
|
showFailed true
|
||||||
|
showStandardStreams false
|
||||||
|
showPassedStandardStreams false
|
||||||
|
showSkippedStandardStreams false
|
||||||
|
showFailedStandardStreams true
|
||||||
|
}
|
||||||
|
|
||||||
tasks.withType(Test).configureEach { task -> if (task.project.name != "metadata-io") {
|
tasks.withType(Test).configureEach { task -> if (task.project.name != "metadata-io") {
|
||||||
// https://docs.gradle.org/current/userguide/performance.html
|
// https://docs.gradle.org/current/userguide/performance.html
|
||||||
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user