Automatically re-run clojure tests
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc Initial clojure stuff Jun 12, 2013
src Reload/test on changes to .cljs, .cljc, and .cljx files within source Nov 27, 2015
test/com/aphyr Fixes race condition in slur function Jan 17, 2015
.lein-classpath Add a classpath file for testing (leiningen doesn't know it has code … Jun 13, 2013 Bump readme versions Jun 17, 2013
project.clj 0.1.3 Jan 21, 2015


Running tests with lein test means waiting for the JVM startup, and waiting for the project to compile. Prism recompiles and reloads files as you change them, and re-runs their corresponding tests immediately. Inspired by Midje's excellent autotest.


Check out Clojars for the latest version number, then add Prism to ~/.lein/profiles.clj:

 {:plugins [[com.aphyr/prism "0.1.1"]]
  :dependencies [[com.aphyr/prism "0.1.1"]]}}

You could alternatively add Prism to the dev dependencies in a given project--but this lets you use Prism against any project regardless of its project.clj.

Then, just run lein prism in your project directory. It'll do a full test first, then as you write .clj files, it'll re-run the corresponding test namespace. Prism assumes your tests are named foo.core-test.

Brought to you by

Raynes and Aphyr!

Why "Prism"?

It may be snooping on everything you write, and checking to make sure it's not dangerous. Or maybe not! Exciting!


Released under the Eclipse Public License; the same as Clojure.