when i run "rake spec" i get color, if have --colour in spec.opts. when i run autotest the output isn''t displayed(i can tell the tests have run thanks to snarl), unless i get rid of --colour. however, now the output is plain-jane white! adding require ''autotest/redgreen'' to .autotest seems to have no effect. when i run "ruby -S script/spec -O spec/spec.opts spec/models/user_spec.rb(which is what is echoed when i run autotest), i also get color only if --colour is in spec.opts any thoughts would be appreciated XP sp2 ruby 1.8.6 rails 2.02 gems that i think are of relevance: diff-lcs 1.1.2 redgreen 1.2.2 rspec 1.1.3 ruby-snarl 0.0.8 win32console 1.0.8 ZenTest 3.9.1 plugins: (i''m not sure how to check versions for these, but they are the newest stable versions) rspec rspec_on_rails -- Posted via http://www.ruby-forum.com/.
On Fri, Feb 29, 2008 at 9:15 PM, Spencer Roan <lists at ruby-forum.com> wrote:> when i run "rake spec" i get color, if have --colour in spec.opts. > > when i run autotest the output isn''t displayed(i can tell the tests have > run thanks to snarl), unless i get rid of --colour. however, now the > output is plain-jane white! > > adding require ''autotest/redgreen'' to .autotest seems to have no effect. > > when i run "ruby -S script/spec -O spec/spec.opts > spec/models/user_spec.rb(which is what is echoed when i run autotest), i > also get color only if --colour is in spec.opts > > any thoughts would be appreciated >For the Windows console process and display correctly the color, special care should be taken from the normal ANSi escape code and redirected to some Win32API functions. Doing that, autotest is no longer capable of capturing the STDOUT/STDERR of the child process and thus, not displaying the result. I''m aware that win32console author is working on workaround this limitation, but no other news. HTH, -- Luis Lavena Multimedia systems - A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. Douglas Adams
@Luis Lavena ok, thank you! i''ll stop beating my head against it then and keep an eye out on the updates of win32console. spencer -- Posted via http://www.ruby-forum.com/.
A colleague of mine says he got his working, but I have yet to see it. I will ask him on Monday and report back with what I find. On Fri, Feb 29, 2008 at 9:15 PM, Spencer Roan <lists at ruby-forum.com> wrote:> @Luis Lavena > ok, thank you! i''ll stop beating my head against it then and keep an eye > out on the updates of win32console. > spencer > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Bryan Ray http://www.bryanray.net "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080301/01ecee1e/attachment.html