Ugly, garbled output from autotest

I am getting this horribly ugly output from autotest when a test fails.

Normal output from ‘rake test’:

  1. Failure:
    test_export_format(TaskTest) [./test/unit/task_test.rb:61]:
    <“Michael Alvarez”> expected but was
    .

Same failure, as seen via autotest:

  1. Failure:
    test_export_format(TaskTest) [./test/unit/task_test.rb:61]:
    — /var/folders/sv/svC-nvosEl4YtAKb5zULK++++TI/-Tmp-/expect.596.0
    2008-02-15 15:27:00.000000000 -0600
    +++ /var/folders/sv/svC-nvosEl4YtAKb5zULK++++TI/-Tmp-/butwas.596.0
    2008-02-15 15:27:00.000000000 -0600
    @@ -1 +1 @@
    -Michael Alvarez
    +

This is obviously pretty ugly and annoying. Nobody else I know sees
this, yet I see it on both my macs in both OS X 10.4 and 10.5, and this
bug has survived the last two upgrades of the ZenTest gem (currently
3.9.1). I’d love to get this cleaned up. Any suggestions?

could those be ansi color codes?

try adding this to the config block in you environment.rb

Rails::Initializer.run do |config|

config.active_record.colorize_logging = false
end

On Feb 15, 1:35 pm, Evan D. [email protected]

On Feb 15, 2008 1:35 PM, Evan D. [email protected]
wrote:

I am getting this horribly ugly output from autotest when a test fails.

That’s unit_diff output. Sometimes it’s great, sometimes it’s ugly. If
you want to turn it off, try putting this in your .autotest file:

unit_diff = “cat”

~ j.

John B. wrote:

That’s unit_diff output. Sometimes it’s great, sometimes it’s ugly. If
you want to turn it off, try putting this in your .autotest file:

unit_diff = “cat”

This fixed it. Thank you, thank you! Yer a genius!