Skip to content

Commit 4e6ca5e

Browse files
committed
Show a failing test's whole exception in the log
In CI the short form gave only "FormatterException at FormatterIntegrationTest.java:76", not what the formatter complained about, and nothing of the output of a TestKit build that failed.
1 parent 9c315d6 commit 4e6ca5e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎build.gradle‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ allprojects {
8787

8888
tasks.withType(Test).configureEach {
8989
jvmArgs(javacInternalExports.collect { "--add-exports=${it}=ALL-UNNAMED".toString() })
90+
// The short form gave CI logs only "FormatterException at FormatterIntegrationTest.java:76", never what
91+
// the formatter complained about, nor the output of a TestKit build that failed.
92+
testLogging.exceptionFormat = 'full'
9093
}
9194

9295
tasks.withType(Javadoc).configureEach {

0 commit comments

Comments
 (0)