Skip to content

Instantly share code, notes, and snippets.

@ninjudd
Forked from anonymous/lazytest.task.clj
Created September 22, 2010 22:56
Show Gist options
  • Save ninjudd/592738 to your computer and use it in GitHub Desktop.
Save ninjudd/592738 to your computer and use it in GitHub Desktop.
;; Don't use ScheduledThreadPoolExecutor, just loop and execute tests directly
(deftask lazytest
"Just fire up lazy test on src and test for now"
(bake (:use lazytest.watch)
(:require lazytest.runner.console
lazytest.report.nested) []
(let [runner (reloading-runner ["src" "test"] lazytest.runner.console/run-tests lazytest.report.nested/report)]
(while true
(runner)
(Thread/sleep 1000)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment