Clojure: expectations, colorized

The current version of expectations (1.4.3) prints colorized results by default on non-windows boxes.



The following screenshot is an example of the output when no tests are failing:







And, the following screenshot is an example of the output when there are failures or errors:







Colorized output is one of those small things that is easy to de-prioritize, but once it's done you can't figure out why you didn't do it earlier. The code to colorize your results is very simple, and there's even a lib, colorize, if you prefer to simply include a dependency instead.



Of course, if you prefer to stick with non-colorized results that's possible as well - simply set the environment variable EXPECTATIONS_COLORIZE to 'false'.
© Jay Fields - www.jayfields.com
 •  0 comments  •  flag
Share on Twitter
Published on May 24, 2012 06:00
No comments have been added yet.