Wrapping Up

In this chapter we covered some of the ways you can ensure that your Clojure code actually works. We took a quick look at writing traditional case-based unit tests with clojure.test and then moved on to generative tests with test.check.

We also saw that the question of how you write your tests is much less important than the decision to write tests. Because when it comes to building working software, neither optimism nor hubris is a strategy.

Get Getting Clojure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.