This is a trivial implementation of FizzBuzz which was live-coded during a TechShare talk on Clojure given at SPS Commerce on September 12, 2014 and again at the Local Variables meetup in South Bend, Indiana on December 17, 2015. The project uses Midje for unit testing.
Get Leiningen
If you have Homebrew already, this is just a brew install leiningen
away
lein midje
will run all tests.
lein midje namespace.*
will run only tests beginning with "namespace.".
lein midje :autotest
will run all the tests indefinitely. It sets up a
watcher on the code files. If they change, only the relevant tests will be
run again.
From within the REPL you can also (use 'midje.repl)
and (autotest)
(or `(doc midje-repl) for more options).
The slide deck for the talk is tech_share.html
, the org-mode file from which
it is made using org-reveal is also
provided.