include useful output logs for failing tests

This helps when tests fail on the gitlab-ci builds.
This commit is contained in:
Hans-Christoph Steiner 2016-05-10 14:34:15 +02:00
parent d6ed2a5e8a
commit cff807e191

View File

@ -157,8 +157,17 @@ android {
} }
testOptions { testOptions {
// prevent tests from dying on android.util.Log calls unitTests {
unitTests.returnDefaultValues = true // 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 { lintOptions {