Fork me on GitHub
#clojure-uk
<
2016-05-26
>
agile_geek18:05:49

In the tradition of UGT - Morning. I've spent all morning and some of afternoon talking to students from Sunderland University about their project work. Some quite impressive stuff. Not so much technically (although some were good) but their teamwork and presentation was really good. A bit disappointingly (but not surprising) only one team of the 8-9 I talked to had automated tests! Everyone said, "we would have if we'd had time". How many times have I heard that from professional developers?

seancorfield18:05:20

If you had automated tests, you would have more time! 🙂

glenjamin19:05:15

i’ve been a bit lazy on this latest project I’ve kicked off, using a gradual type checker and i’ve been really lax on tests. Last couple of days i’ve really felt the impact

glenjamin19:05:38

it’s only 3 weeks old, but I got a big dump of messy HTML canvas from another dev - trying to tidy it up and I keep introducing edge case regressions

yogidevbear20:05:23

What test librar(y|ies) are the current recommended ones to use? I heard midje was no longer the best option for tests.

glenjamin21:05:35

I tried expectations recently and liked it

seancorfield21:05:37

The objections to Midje are generally a) it constructs it’s own rich DSL on top of Clojure b) it does a lot of "magic" behind the scenes. The built-in clojure.test is fine for rather imperative, assertion-based code. We switched to Expectations at World Singles, several years back and we love that.

yogidevbear21:05:56

2/2 votes for expectations sounds promising