Re: new in contrib.test-is: fixtures

2009-03-30 Thread Stuart Sierra
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

Re: new in contrib.test-is: fixtures

2009-03-29 Thread John D. Hume
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

Re: new in contrib.test-is: fixtures

2009-03-28 Thread David Nolen
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