mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-06-05 21:15:22 +00:00
improve new format checking to capture all valid outputs.
improve floating point special case reporting to always use verbose. fix bug in arrays where values were sometimes not shown.
This commit is contained in:
@@ -19,6 +19,12 @@ def report(message)
|
||||
colour = case line
|
||||
when /(?:total\s+)?tests:?\s+(\d+)\s+(?:total\s+)?failures:?\s+\d+\s+Ignored:?/i
|
||||
Regexp.last_match(1).to_i.zero? ? :green : :red
|
||||
when /^\[FAIL\]/
|
||||
:red
|
||||
when /^\[p \]/
|
||||
:green
|
||||
when /^\[i---\]/
|
||||
:green
|
||||
when /PASS/
|
||||
:green
|
||||
when /^OK$/
|
||||
|
||||
Reference in New Issue
Block a user