testing

Testing tools, testing philosophy & methodology...
2015-08-18T14:38:15.000050Z

What testing frameworks do you all use?

nberger 2015-08-18T14:40:31.000051Z

I basically use clojure.test (and cljs.test) and test.check (sometimes with sugar provided by test.chuck)

nberger 2015-08-18T14:42:29.000052Z

Might use expectations too, but try to avoid midje & speclj

2015-08-18T14:45:27.000053Z

Why avoid midje/speclj?

2015-08-18T14:45:30.000054Z

Curious.

nberger 2015-08-18T15:21:16.000055Z

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.

nberger 2015-08-18T15:22:09.000056Z

But I like to not have to learn another DSL.

nberger 2015-08-18T15:23:17.000057Z

Oh, I also like humane-test-output to improve the output from clojure.test... And also juxt/iota

2015-08-18T15:32:48.000058Z

nberger: ah ok

nberger 2015-08-18T16:25:30.000059Z

Now I'd also like to know what others are using :simple_smile:

2015-08-18T17:43:38.000060Z

@nberger: same as you, but without expectations (no particular reason, I'm just content with clojure.test)

nberger 2015-08-18T17:49:36.000061Z

@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:

nberger 2015-08-18T17:59:46.000062Z

I really liked juxt/iota, from @malcolmsparks , it's tasty sugar for clojure.test :simple_smile:

nberger 2015-08-18T18:01:50.000064Z

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

malcolmsparks 2015-08-18T21:42:07.000065Z

ah yes, that would be nice, I'll see about working that in

malcolmsparks 2015-08-18T21:42:43.000066Z

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

nberger 2015-08-18T21:58:28.000067Z

yes, exactly that. I'll think about it too, but doesn't seem easy to add the message without losing the nice triples structure