Skip to content

Commit

Permalink
Merge pull request #1505 from madsboddum/exceptions-failed-tests
Browse files Browse the repository at this point in the history
Show exception stacktraces in case of test failure
  • Loading branch information
Josh-Larson authored Mar 24, 2024
2 parents e9e8244 + 1ac5016 commit b05eee1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent

/***********************************************************************************
* Copyright (c) 2023 /// Project SWG /// www.projectswg.com *
* *
Expand Down Expand Up @@ -154,4 +157,9 @@ tasks.create<JavaExec>("runClientdataConversion") {

tasks.withType<Test>().configureEach {
useJUnitPlatform()

testLogging {
events = setOf(TestLogEvent.FAILED, TestLogEvent.SKIPPED)
exceptionFormat = TestExceptionFormat.FULL
}
}

0 comments on commit b05eee1

Please sign in to comment.