Added some more coloring to nant-color (especially for tests)
parent
499f1428f7
commit
9c8e4d0914
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue