Testing on the Clojure track

Learn how to test your Clojure exercises on Exercism


Clojure CLI

The Clojure exercises on Exercism ship with a deps.edn file with a :test alias to invoke the cognitect-labs test-runner:

$ clj -X:test

This will scan your project's test directory for any tests defined using clojure.test and run them.

Leiningen

To run an exercise's tests with Leiningen, simply call:

$ lein test

lein test bob-test

Ran 14 tests containing 14 assertions.
0 failures, 0 errors.