Support color output
gavv opened this issue · 1 comments
gavv commented
Modify DefaultFormatter to support colorized output.
It should provide three color modes, controlled by an option:
- auto (used by default) - enable colors if testing.Verbose() is true and stdout is a tty / console
- always - always use colors
- never - never use colors
Color support should work for both unix and windows.
Colors should be injected into failure template using template functions, but should not be present in FormatData. This way users that use DefaultFormatter with custom templates wont be affected.
gavv commented
Maybe we can also use this https://github.com/TylerBrock/colorjson