Seeing the bar turn green is great for the morale; this is one of the several
benefits of writing tests (even if you don't go fully TDD). Running tests
manually can disrupt your workflow, though, so we're all using
autotest to have our tests
executed in the background continuously.
autotest includes a number of extensions to notify the result of the last
tests in a non-intrusive manner, using growl, snarl, kdenotify...
I'm using wmii (and my WM is
fully scripted in Ruby), and it doesn't get less intrusive nor
more readable than the bar:
And here's what the bar looks like when tests fail:
I normally run autotest in a terminal right below/above the editor (in wmii's
stacked mode), so when I want to read Test::Unit's messages I can switch
quickly with Alt-j/k. My autotest extension also supports clicking on the
button to see the messages or reset autotest, but there's no point in using
the mouse anyway...
This snippet doesn't depend on ruby-wmii so it should run with
the default wmiirc script. Just place this in ~/.autotest or #require it there: