Summary
So far, we have discussed several libraries that can help us test and verify our code. We talked about the clojure.test
and Midje libraries for defining tests. We also explored how we can define specs in the spirit of BDD using the Speclj library. Generative testing is another approach to testing, and we demonstrated how it can be done using the test.check
library. Lastly, we talked about how we can perform type checking in Clojure using the core.typed
library. Hence, there is a wide array of options for testing our code in Clojure.
In the next and final chapter, we will talk about how we can troubleshoot our code, as well as some good practices for developing applications in Clojure.