Agreed, Timothy - obviously the mental model gets more tangled when
state mocking comes into play, but the fact is, sometimes you don't have
the option (right away) of rewriting the code you're testing.
Midje has been great for the Cascalog community:
http://www.samritchie.io/testing-cascalog-with-midje/
http://www.samritchie.io/cascalog-testing-2-0/
The state mocking is just one piece of Midje. A bunch of its other
features, such as its collection checkers and chatty checkers, are
excellent.
Colin Yates wrote:
I have thousands of lines of tests written using Midje and it was the
second one I turned to when I started using Clojure full-time a couple
of years ago. I think it would be fairer to say that Midje is powerful
enough to hang yourself, but that doesn't make that power wrong. This
is the good old power/not power dilema and caution should dfefinitely
be used by newbies using Midje, particularly established OO developers
to ensure they don't mis-use Midje's tools as a bridge to stay in the
OO paradigm.
--
Sam Ritchie (@sritchie)
Paddleguru Co-Founder
703.863.8561
www.paddleguru.com <http://www.paddleguru.com/>
Twitter <http://twitter.com/paddleguru>// Facebook
<http://facebook.com/paddleguru>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.