Hi Michal, I tried adding the following to Gemfile but it made no difference.
platforms :mswin do gem 'win32console' end However, when I run the tests directly (i.e. ruby tests\cimi\collections\system_templates_test.rb), words like PASSED and FAILED are coloured (even without the Gemfile change). Why? If I uninstall turn, the test above running directly uses normal dots, but rake test:cimi fails: d:\sources\OSS\cloud\deltacloud\server>rake test:cimi rake aborted! Could not find turn-0.9.6 in any of the sources d:/sources/OSS/cloud/deltacloud/server/Rakefile:26:in `<top (required)>' (See full trace by running task with --trace) Regards, Dies Koper > -----Original Message----- > From: Michal Fojtik [mailto:[email protected]] > Sent: Wednesday, 13 March 2013 7:32 PM > To: [email protected] > Subject: Re: coloured dots > > On 03/13, Koper, Dies wrote: > > Hi Dies, > > I'm very sorry about this. I haven't thought about Windows console. > I think you can resolve it by simply removing the 'turn' gem: > > $ gem uninstall turn > > Then tests should work as usual, without this fancy formatting. > > Another solution would be to add 'w32console' gem into Gemfile for > the 'windows' platform. That will give you colored dots :-) > > -- Michal > > > Hi Michal, > > > > You recently committed "Core: make 'turn' to report colored dots". > > When I now run the unit tests, it looks like this: > > > > d:\sources\OSS\cloud\deltacloud\server>rake test:cimi > > ansi: 'gem install win32console' to use color on Windows > > Loaded suite > > Started > > > [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[ > 0m[ > > > 32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m > [32 > > m.[0m[32m.[0m > > > [32m.[0m[32m.[0m[33mE[0m[32m.[0m[33mE[0m[32m.[0m[33mE[ > 0m[ > > > 33mE[0m[33mE[0m[33mE[0m[33mE[0m[33mE[0m[33mE[0m[33mE[0m > [33 > > mE[0m[33mE[0m > > > [33mE[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[ > 0m[ > > > 32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m > [32 > > m.[0m[32m.[0m > > > [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[ > 0m[ > > > 32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m > [32 > > m.[0m[32m.[0m > > > > Installing the w32console gem does not make a difference, the "ansi" > > message is still printed. > > > > Can you look into this, or make this change only enabled on non-Windows? > > > > Cheers, > > Dies Koper > > > > -- > Michal Fojtik <[email protected]> > Deltacloud API, CloudForms
