These are chat archives for ldnclj/chat

25th
May 2015
Chris Howe-Jones
@chrishowejones
May 25 2015 07:05
Morning.
Bruce Durling
@otfrom
May 25 2015 20:04
@chrishowejones you might enjoy this from @yeller https://github.com/yeller/matcha
Chris Howe-Jones
@chrishowejones
May 25 2015 20:06
@otfrom looks interesting. Might try it out - looks synonymous with libraries like hamcrest in Java.
@otfrom I'm thinking of writing a port of yatspec in Clojure to 'publish' tests and notes in a format that can facilitate conversations with non-developers. matcha might fit into this as I need a structure that reads well when published (at least in English to begin with).
Korny Sietsma
@kornysietsma
May 25 2015 20:25
Matcha looks interesting. Mostly I use midje, but I keep planning to take another look at the alternatives. I don't like midje when it's macro nature breaks things, but the syntax generally suits me.
Chris Howe-Jones
@chrishowejones
May 25 2015 20:27
I like midje for the same reasons. I use clojure.test too but I find midje more readable although I can't quantify why. A fellow Java dev also commented that he preferred the style of midje when he saw both.
Chris McDevitt
@minimal
May 25 2015 20:31
I wouldn't use midje again, it's too odd. I Prefer expectations recently, just enough sugar over clojure.test and much better reporting than midje or clj test
Chris Howe-Jones
@chrishowejones
May 25 2015 20:31
The major hurdle I can see in developing something like yatspec to publish tests to html for consumption by non developers is that Clojure's strength as a homoiconic language works against it as prefix operators don't look natural when published as English statements.
@minimal hadn't found http://jayfields.com/expectations/ before. Looks interesting too.
Bruce Durling
@otfrom
May 25 2015 20:34
@chrishowejones matcha is like hamcrest on purpose http://yellerapp.com/posts/2015-25-05-matcha.html
Chris McDevitt
@minimal
May 25 2015 20:36
@chrishowejones the style it promotes is outlined in his (recommended) book https://leanpub.com/wewut .
Chris Howe-Jones
@chrishowejones
May 25 2015 20:43
Both expectations and matcha move much closer to what I want in test readability. Still have to solve the issue that (+ 1 3) just doesn't look natural to anyone who isn't a mathematician or someone who programs in a Lisp.
Korny Sietsma
@kornysietsma
May 25 2015 20:48
It's funny, I find that utterly fine in code - but in tests I want "given X then Y" for some reason.
Bruce Durling
@otfrom
May 25 2015 20:51
@chrishowejones & @kornysietsma sum X and Y
or add x and y
take the difference of 3 and 2
Korny Sietsma
@kornysietsma
May 25 2015 20:55
"I expect that when I set the wodget to 'squee' and then triangulate the fungler, the result should be between 5 and 7" -
I'm fine with (+ 2 3) but tests feel like prose
Anyway, should stop rambling. Night, Jim-Bob.