Gradle-built Generic Java Application Test Logging

From NovaOrdis Knowledge Base
Revision as of 06:01, 7 April 2019 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

dependencies {
    implementation "org.slf4j:slf4j-api:1.7.23"
    implementation "org.slf4j:slf4j-log4j12:1.7.23"
}
  • Place a log4j.xml configuration in src/test/resources.