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