Skip to content

devn/clojure-autotest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

By Tom Crayford

Preserved for posterity

See: http://www.tcrayford.net/2009/12/08/Lein-Autotest.html

Clojure Autotest

I’ve been doing a lot of testing for a clojure side project recently, and got envious of Ruby people having nice tools. In particular I liked the coloured output and automatic test running from rspactor.

I found watchr and came up with this script, which simply watches for changes to .clj files in /src and /test and runs lein test in the shell window.

To get started, install watchr

gem install watchr and run the script in the home directory for your Leiningen-backed clojure project.

watchr /path/to/script The script also does some (very basic) red/green colouring of outputs using zsh color codes.

About

watchr script for lein-autotest by Tom Crayford

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages