aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nant-color
diff options
context:
space:
mode:
Diffstat (limited to 'nant-color')
-rwxr-xr-xnant-color6
1 files changed, 6 insertions, 0 deletions
diff --git a/nant-color b/nant-color
index ca5ea37..c4cebb0 100755
--- a/nant-color
+++ b/nant-color
@@ -46,6 +46,12 @@ def colorize(str)
46 str.sub!(/(Build Succeeded)/i, green('\1')) 46 str.sub!(/(Build Succeeded)/i, green('\1'))
47 str.sub!(/(Compilation succeeded)/, green('\1')) 47 str.sub!(/(Compilation succeeded)/, green('\1'))
48 str.sub!(/(\d+ warning\(s\))/, yellow('\1')) 48 str.sub!(/(\d+ warning\(s\))/, yellow('\1'))
49 str.sub!(/(Build Failed)/i, red('\1'))
50
51 str.sub!(/(Tests run: \d+, Failures: 0, Not run: 0,.*)/, green('\1'))
52 str.sub!(/(Tests run: \d+, Failures: 0, Not run: [1-9].*)/, yellow('\1'))
53 str.sub!(/(Tests run: \d+, Failures: [1-9].*)/, red('\1'))
54 str.sub!(/(Test Case Failures:)/, red('\1'))
49 return str 55 return str
50end 56end
51 57