Minor UI improvement.

This commit is contained in:
Luka Vandervelden 2020-11-24 00:45:35 +01:00
parent 737f34eb55
commit 6f91055f11

View File

@ -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