What testing frameworks do you all use?
I basically use clojure.test (and cljs.test) and test.check (sometimes with sugar provided by test.chuck)
Might use expectations too, but try to avoid midje & speclj
Why avoid midje/speclj?
Curious.
I feel they are more complex, and don't give much in return. They do so many things that I don't need most of the time. I can always use a macro to avoid some kind of repetition.
But I like to not have to learn another DSL.
Oh, I also like humane-test-output to improve the output from clojure.test... And also juxt/iota
nberger: ah ok
Now I'd also like to know what others are using :simple_smile:
@nberger: same as you, but without expectations (no particular reason, I'm just content with clojure.test
)
@bensu: cool. Well, I'm not actually using expectations, it's just that from what I've seen, it seems less "invasive" than the others, so I could use it, but probably won't :simple_smile:
I really liked juxt/iota, from @malcolmsparks , it's tasty sugar for clojure.test :simple_smile:
One nice addition to juxt/iota would be to have a way to add a message on a certain assertion, so when it fails you can distinguish it from the others... it would be transformed to the 3-arity form of clojure.test/is
ah yes, that would be nice, I'll see about working that in
it's a bit of a pain right now when a particular triple fails, at least in my emacs I don't see a good indication of the triple that caused the failure
yes, exactly that. I'll think about it too, but doesn't seem easy to add the message without losing the nice triples structure