diff --git a/build.gradle b/build.gradle index 7b5791a..235821e 100644 --- a/build.gradle +++ b/build.gradle @@ -104,4 +104,27 @@ task finalizeProject { file(libs + "/" + uberJarName).renameTo(file(libs + "/" + jarName)) } } -assemble.finalizedBy(finalizeProject) \ No newline at end of file +assemble.finalizedBy(finalizeProject) + +task testOutput { + description 'Print Test output' + group "Build" + + doLast { + for (def file : new File("${buildDir}/test-results/test/").listFiles()) { + if (file.isDirectory()) { + continue + } + def strings = file.readLines() + if (strings.get(1).contains("failures=\"0\"")) { + continue + } + println "Content ${file}:" + strings.each { + line -> println ": $line" + } + println "" + } + } +} +test.finalizedBy(testOutput) \ No newline at end of file