From 6f91055f112c8c3df9655e4f85d8a62cfc8c8d9b Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Tue, 24 Nov 2020 00:45:35 +0100 Subject: [PATCH] Minor UI improvement. --- src/main.cr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.cr b/src/main.cr index c785e92..9d791f1 100644 --- a/src/main.cr +++ b/src/main.cr @@ -155,7 +155,12 @@ when "show" # This prints a single TAP test entry. STDOUT << " -> " STDOUT << ("%3s" % test.id).colorize(:cyan) - STDOUT << (" %6s " % test.status.to_s).colorize(:green) + + if test.status.ok? + STDOUT << (" %6s " % test.status.to_s).colorize(:green) + else + STDOUT << (" %6s " % test.status.to_s).colorize(:red) + end STDOUT << test.title.colorize(:white) STDOUT << "\n" STDOUT.flush