24 May '12, 1pm

Clojure: expectations, colorized

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'.Labels: clojure , expectations Share: Email | Del.icio.us | Digg | Reddit # posted by jaycfields : 9:00 AM

Full article: http://blog.jayfields.com/2012/05/clojure-expectations-co...

Tweets

Clojure: Freezing Time in expectations

blog.jayfields.com 29 May '12, 1pm

The current version of expectations (1.4.3) contains support for freezing time within an expectations scenario . I already...

Clojure: expectations & with-redefs

blog.jayfields.com 05 Jun '12, 1pm

In general, when I'm writing tests, the pure functions end up as bare expects and the impure functions end up as scenarios...

Increasing salary expectations putting Singapor...

straitstimes.com 23 May '12, 7am

Salary expectations here are increasingly become a source of tension between businesses and their employees, according to ...

That's this kind of articles I benefit from the...

blog.jayfields.com 21 May '12, 10am

Clojure provides a few different options for creating functions inline: fn (or the #() reader macro ), partial, and comp. ...