it's easy being redgreen

— September 10, 2007 at 21:46 PDT


I can't get by without redgreen to colorize my test output. You can get it to work with all your Rails test tasks by requiring the redgreen gem in test_helper.rb. The problem is, it messes up your test output formatting when you run tests in TextMate using Command-R. The solution is trivial - check to see if any of the TextMate execution environment variables are present:

In test_helper.rb:

require 'redgreen' unless ENV['TM_MODE']

Now back to your regularly scheduled internets...

4 commentstesting, textmate, tools

Comments
Priit Tamboom2007-09-11 03:39:35

Have you tried out autotest with sound? http://fozworks.com/2007/7/28/autotest-sound-effects

Phil2007-09-13 00:02:40

The problem is, it messes up your test output formatting when you run tests in TextMate using Command-R.

Cool, but... why not fix your editor to understand ANSI color codes instead? =)

Arny2007-09-14 15:02:49

Special thanks to Priit Tamboom for the link. Really nice stuff :)

Justin2007-09-20 17:13:03

Thank you! This has been bugging me for a long time.

Sorry, comments for this article are closed.


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser