Last active
December 1, 2016 10:17
-
-
Save matklad/87c5fe226e22310ea0405ed96b72fbee to your computer and use it in GitHub Desktop.
Laconic test output for gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test { | |
testLogging { | |
events 'skipped', 'failed' | |
exceptionFormat = 'full' | |
} | |
beforeSuite { suite -> | |
if (suite.className != null) { | |
println() | |
println(suite.className) | |
} | |
} | |
afterTest { desc, result -> | |
def c = '.' | |
if (result.resultType == TestResult.ResultType.FAILURE) { | |
c = 'X' | |
} else if (result.resultType == TestResult.ResultType.SKIPPED) { | |
c = 'S' | |
} | |
print(c) | |
System.out.flush() | |
} | |
afterSuite { println() } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment