Test-Driven-Development in CIDER and Emacs16 Nov 2015, by Artur Malabarba.
As I was catching up on a few Parens of the Dead episodes this weekend, I was amused at how Magnar set up his Emacs to run tests whenever the file is saved. At first I thought it wasn’t for me (I’m one of those who obsessively saves every few seconds), but I’ve been trying it out lately and it’s starting to grow on me.
At its core, all you really need is an hook. But I walked the extra yard and
wrote a minor mode for it, so I can easily call M-x
tdd-mode to disable it
if it ever gets on my nerves.
I also had to change the
cider-test-success-face to something a little less
Made it a global mode, so it’s easy to disable everywhere, and set the initial
Fixed a function call to the new name.