diff options
Diffstat (limited to 'nant-color')
-rwxr-xr-x | nant-color | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
50 | end | 56 | end |
51 | 57 | ||