An
introduction to clojure.test is easy, but it doesn't take long before you feel like you need a mocking framework. As far as I know, you have 3 options.Take a look at
Midje. I haven't gone down this path, but it looks like the most mature option if you're looking for a sophisticated solution.
Go simple. Let's take an example where you want to call a function that computes a value and sends a response to a gateway. Your first implementation looks like the code below. (
destructuring...
Published on September 01, 2010 17:11