testLogging.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 26 Mar 2017 00:14:06 +0300
changeset 2120 5f5defb2793f
parent 2119 3fd683bb6af2
child 2121 b6f9485fad08
testLogging.
gradle.rst
--- a/gradle.rst	Mon Mar 20 16:09:01 2017 +0200
+++ b/gradle.rst	Sun Mar 26 00:14:06 2017 +0300
@@ -132,6 +132,28 @@
 
      $ gradle test --rerun-tasks
 
+By default ``System.out`` and ``Sysyem.err`` redirected so you wouldn't see
+anything about test on console.
+
+Quick way to see test output is::
+
+  $ gradle test -i
+
+Alternatively configure ``test`` task::
+
+  test {
+    testLogging {
+      events "passed", "skipped", "failed" //, "standardOut", "standardError"
+
+      showExceptions true
+      exceptionFormat "full"
+      showCauses true
+      showStackTraces true
+
+      showStandardStreams = false
+    }
+  }
+
 Stopping server
 ===============
 ::
@@ -189,7 +211,8 @@
 
 Work in offline mode with ``--offline`` option.
 
-Force to re-download dependencies with ``--refresh-dependencies`` option.
+Invalidate cache (force re-downloading dependencies) with
+``--refresh-dependencies`` option.
 
 Alternatively remove ``~/.m2/repository/`` and ``~/.gradle/caches`` directories.