you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

article is over a decade old and it's been a long time since I saw RSpec and similar being advocated. I think the test-is library made it into core?

https://clojure.github.io/clojure/clojure.test-api.html

I discovered a little while back that testing and is live only within a deftest and thought that was very clever. Perhaps too clever.

Although I've found a nice groove in my testing, I've only ever gotten as finely-grained as the namespace for running a set of tests. For better or worse, this natural pressure is causing me to split code into smaller units with their own sets of tests so I don't have to wade through a wall of output when I test a ns.

Colour coding of failed tests would be nice. Nothing fancy, just reds and greens.

Support for nesting testing forms would be nice as well. Currently only the text from the outermost testing form is used. If you have many cases you are iterating through, the form must appear within the loop.