ZenTest is a great tool. I use it and its redgreen plugin a lot to easily keep an eye on my tests.

I use a green terminal background though, so when my tests pass, rather than a green line, I have to rely on a lack of a red line. This isn't so bad, but I thought it could be improved with a little effort.

Redish greenish is an extension of redgreen that allows you to specify the colours used for tests passing and/or failing.

To use it, save this file into your autotest lib directory. (Mine is GEM_PATH/1.8/gems/ZenTest-3.6.1/lib/autotest/). To enable redishgreenish, you'll need to modify your autotest config file. Open "~/.autotest" and change the line:

require 'autotest/redgreen'

to
require 'autotest/redishgreenish'

At this point, autotest will behave exactly the same as if redgreen was used. To change the colour of the lines used to signify tests passing and failing, your autotest config file should look like

PASSED = :blue
FAILED = :yellow
require 'autotest/redishgreenish'

Valid values for colours are

:black, :red, :green, :yellow, :blue, :magenta, :cyan, :white

blog comments powered by Disqus