Hey folks! Was cool to hear several peoples opinions on testing at the meetup.
Here is a link to the
for-all Midje generative testing feature I presented, and for the curious, the PR that implemented it.
Regarding my experience/opinions with Clojure testing frameworks: for the year I’ve been using Clojure, I’ve used Midje almost exclusively, so views may be a bit limited…
My organization has, with pretty good results, built a lot of tooling on top of Midje: a framework for single-service integration tests, a framework for end-to-end integration tests, and a handful of checkers for nested data-structures (we are in the process of open-sourcing these ).
Midje is fairly complex in what it offers and grew organically. You are given a lot of power to write expressive tests without need for additional instrumentation. But I’ve also seen plenty of engineers shooting themselves in the feet with it (including myself, a lot), and of course encountered a handful of implementation bugs.
Over my time using and contributing to Midje I’ve slowly found myself wanting something that lies between the simplicity of
clojure.test and the expressive power of Midje.
I ended up creating this google spreadsheet that compares the two testing frameworks. The link has comment permissions but it would be cool to see other frameworks added to it.
My hopes are to one day take a crack at building something that lies in the sweet-spot between the two frameworks but it is also entirely possible that this already exists and I’m just not familiar with it.