During my work with clojure, test-refresh (https://github.com/jakemcc/lein-test-refresh) is one of my favourite plugin, which allows me to feedback very fast whether my code change has broken tests. Test-refresh offers a useful feature to notify you with result. The notification can be set up easily. I’ve tested it on Mac OSX and Ubuntu
Mac OS X
- Install terminal-notifier
$ brew install terminal-notifier
- Configure the Leiningen’s profiler your/home/folder/.lein/profiles.clj
{:user {:plugins [[com.jakemccrary/lein-test-refresh "0.11.0"]]
:test-refresh {:notify-command ["terminal-notifier"
"-title" "Tests"
"-message"]}}}
Ubuntu
- Install notify
$ sudo apt-get install libnotify-bin
- Configure the Leiningen’s profiler your/home/folder/.lein/profiles.clj
{:user {:plugins [[com.jakemccrary/lein-test-refresh "0.11.0"]]
:test-refresh {:notify-command ["notify-send" "Tests"]}}}