Write fast unit tests with deftest, is, testing, and fixtures.
clojure.test is Clojure’s built-in unit testing library. If you already know JUnit, the concepts will feel familiar: test cases, assertions, grouping, and fixtures.
The big ergonomic difference is workflow: you often run tests from a live REPL while iterating, not only from a build tool.
1(deftest add-test
2 (testing "adds numbers"
3 (is (= 3 (add 1 2)))))
This section focuses on writing tests that are small, readable in code review, and aligned to the “pure core” style.