Dieser Commit ist enthalten in:
Ursprung
5e2d18a5b5
Commit
6113f0146d
23
build.gradle
23
build.gradle
@ -105,3 +105,26 @@ task finalizeProject {
|
||||
}
|
||||
}
|
||||
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)
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren