While testing, Gradle appears to redirect stdout/stderr to project_dir/build/reports/tests/index.html
. Is there a way to avoid this redirection, and get things printed to the console instead?
Additional information:
View -> Tool Windows -> Build. There is small "ab" button on the left panel. All gradle logs for current build are there.
Internally, Gradle uses Ant and Ivy. Both have their own logging system.
Gradle executes tests in a separate ('forked') JVM, isolated from the main build process. This prevents classpath pollution and excessive memory consumption for the build process. It also allows you to run the tests with different JVM arguments than the build is using.
apply plugin : 'java' test { testLogging.showStandardStreams = true }
http://gradle.org/docs/current/dsl/org.gradle.api.tasks.testing.Test.html
This requires a current gradle version. I am assuming that the Scala tests are run under the Java test task.
I am using also (testLogging.exceptionFormat = 'full'
):
test { testLogging.showStandardStreams = true testLogging.exceptionFormat = 'full' }
Which is good to see more from stacktrace
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With