From 9c8e4d09143d8dfb0827fa251483b4e4fb9bdf9c Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Sun, 2 Nov 2008 13:13:45 +0000 Subject: [PATCH] Added some more coloring to nant-color (especially for tests) --- nant-color | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nant-color b/nant-color index ca5ea37e4f..c4cebb043d 100755 --- a/nant-color +++ b/nant-color @@ -46,6 +46,12 @@ def colorize(str) str.sub!(/(Build Succeeded)/i, green('\1')) str.sub!(/(Compilation succeeded)/, green('\1')) str.sub!(/(\d+ warning\(s\))/, yellow('\1')) + str.sub!(/(Build Failed)/i, red('\1')) + + str.sub!(/(Tests run: \d+, Failures: 0, Not run: 0,.*)/, green('\1')) + str.sub!(/(Tests run: \d+, Failures: 0, Not run: [1-9].*)/, yellow('\1')) + str.sub!(/(Tests run: \d+, Failures: [1-9].*)/, red('\1')) + str.sub!(/(Test Case Failures:)/, red('\1')) return str end