Gradle-built Generic Java Application Test Logging
Jump to navigation
Jump to search
Internal
Overview
When building with Gradle a generic Java application, stdout and stderr of the tests being executed will be shown at the console if the following are configured:
- Set testLogging.showStandardStreams of the Java plugin Test task, as shown here: Show stdout and stderr of the Test JVM on the Console.
- Make sure that a log4j slf4j binding is in the test classpath. Spring uses Logback by default, so the following will work: Place Logback Binding on test classpath.
- Place a log4j.xml configuration in src/test/resources.