From cff807e1915e4bcd92b3cb7d272ec524cd66f974 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 10 May 2016 14:34:15 +0200 Subject: [PATCH] include useful output logs for failing tests This helps when tests fail on the gitlab-ci builds. --- app/build.gradle | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5103af08b..e5967b14b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -157,8 +157,17 @@ android { } testOptions { - // prevent tests from dying on android.util.Log calls - unitTests.returnDefaultValues = true + unitTests { + // prevent tests from dying on android.util.Log calls + returnDefaultValues = true + all { + // All the usual Gradle options. + testLogging { + events "skipped", "failed", "standardOut", "standardError" + showStandardStreams = true + } + } + } } lintOptions {