>> I think you are coming across a bit strong That's probably true. At the end of the day I believe that tests should be written in the same language with the same semantics as the code they are testing. Midje does not recommend this. It is a multi-thousand line compiler that transforms a DSL into Clojure, introducing new semantics, and syntax. Simplicity always wins in my book. I'll take more verbose tests any day over a custom compiler wrapped in a macro.
Timothy On Mon, Jan 5, 2015 at 8:36 AM, Sam Ritchie <sritchi...@gmail.com> wrote: > 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 > 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. > -- “One of the main causes of the fall of the Roman Empire was that–lacking zero–they had no way to indicate successful termination of their C programs.” (Robert Firth) -- 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.