1. Install expectations lib
Goto http://jayfields.com/expectations/installing.html
Or, simple add [expectations "1.4.52"] into your project.clj
2. Install expectations plugin for leiningen
add :plugins [[lein-expectations "0.0.7"]] into your project.clj
3. Write your tests
(expect nil? nil)
(expect (add 2 3) 5)
4. Run your tests
lein expectations
5. Install autoexpect (to Automate it)
Goto https://github.com/jakemcc/lein-autoexpect
or add [lein-autoexpect "1.0"] to plugins section of project.clj
6. Run autoexpect
lein autoexpect