Writing your tests in EDN files
https://biffweb.com/p/edn-tests/
I’ve previously written about my latest approach to unit tests: [Y]ou define only the input data for your function, and then the expected return value is generated by calling your function. The expected value is saved to an EDN file and checked…
You must log in or register to comment.
@planet @clojure How do you guard against the case where you generate incorrect output because of a bug, but fail to notice because spotting errors in generated output is harder (albeit less work) than constructing correct output manually? For me it’s a big issue, but no doubt varies a lot across people and domains. My only solution is “git good”, i.e. try harder.



