On Mar 29, 3:05 pm, "John D. Hume" wrote:
> This is a cool functional way of defining these, but I think I'd
> prefer to just call the fixture function from the tests needing common
> setup because of the standard problems with shared setup in unit
> tests. (In brief, the test doesn't stand on it
On Sat, Mar 28, 2009 at 10:24 PM, Stuart Sierra
wrote:
> (defn my-fixture [f]
> ;; Perform setup, establish bindings, whatever.
> (f) ;; Then call the function we were passed.
> ;; Tear-down / clean-up code here.
> )
This is a cool functional way of defining these, but I think I'd
p
very cool :)
On 3/28/09, Stuart Sierra wrote:
>
> Hi folks,
> I finally came up with fixtures for clojure.contrib.test-is. Now you
> can do before/after setup for each test case. Here's the
> documentation, let me know what you think.
> -Stuart Sierra
>
> ;; FIXTURES (new)
> ;;
> ;; Fixt