We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946a094 commit 7d6152aCopy full SHA for 7d6152a
1 file changed
build.gradle
@@ -39,16 +39,19 @@ tasks.withType(Test) {
39
40
}
41
afterTest { descriptor, result ->
42
+ String indent = ' '
43
def indicator = ANSI_WHITE
44
45
if (result.failedTestCount > 0) indicator = ANSI_RED + X_MARK
46
else if (result.skippedTestCount > 0) indicator = ANSI_YELLOW + NEUTRAL_FACE
47
else indicator = ANSI_GREEN + CHECK_MARK
48
- out.println(' ' + indicator + ANSI_RESET + " " + descriptor.name);
49
-
50
- if (result.failedTestCount > 0) { out.println(' ') }
+ out.println(indent + indicator + ANSI_RESET + " " + descriptor.name);
51
+ if (result.failedTestCount > 0) {
52
+ String exceptions = result.getException().toString()
53
+ out.println(indent + exceptions.split("\\n").join("\n" + indent))
54
+ }
55
56
57
afterSuite { desc, result ->
0 commit comments