Skip to content

Commit

Permalink
Make test logging more verbose (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 authored Nov 14, 2024
1 parent cd36353 commit 82105fb
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions src/main/kotlin/us/ihmc/ci/IHMCCIPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.tasks.testing.Test
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
import us.ihmc.build.IHMCBuildLogTools
import java.io.File
Expand Down Expand Up @@ -201,12 +202,21 @@ class IHMCCIPlugin : Plugin<Project>
test.minHeapSize = "${categoryConfig.minHeapSizeGB}g"
test.maxHeapSize = "${categoryConfig.maxHeapSizeGB}g"

test.testLogging.info.events = setOf(TestLogEvent.STARTED,
TestLogEvent.FAILED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_ERROR,
TestLogEvent.STANDARD_OUT)
testLogging {
events = setOf(
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.FAILED,
TestLogEvent.STANDARD_OUT,
TestLogEvent.STANDARD_ERROR
)

exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showCauses = true
showExceptions = true
showStackTraces = true
}

LogTools.info("test.forkEvery = ${test.forkEvery}")
LogTools.info("test.maxParallelForks = ${test.maxParallelForks}")
Expand Down

0 comments on commit 82105fb

Please sign in to comment.