[rspec-users] Colorize story output

Paolo Donà paolo.dona at gmail.com
Mon Jul 7 16:34:28 EDT 2008


Wow cool, I feel so stupid now :-)
So, after one hour in the closet I would ask: how to plug the growl stuff in?

Paolo

On Mon, Jul 7, 2008 at 8:34 PM, Ben Mabey <ben at benmabey.com> wrote:
> Paolo Donà wrote:
>>
>> Hi guys,
>> running large story files I started missing the red/green output of my
>> specs.
>> Thus I wrote a small script
>> <http://github.com/paolodona/scripts/tree/master/colorize> you can pipe the
>> story output to, in order to 'colorize' it..
>>
>> so instead of:  $ ./stories/all.rb
>> you can say:   $ ./stories/all.rb | ./colorize
>> and get pending and failed steps correctly highlighted.
>>
>> There's a basic support for growl too if found in your path (I ripped off
>> most of the code from .autotest). That works, but it's certainly not well
>> integrated into RSpec stories. How would it be the right way to do this?
>>
>> (if you want to see how the result look like, take a look here:
>> http://paolodona.com/2008/7/6/colorize-rspec-stories-output)
>>
>> --
>> Paolo Dona'
>> http://paolodona.com
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>
>
> Hey Paolo,
> This looks look.  However, the story runner currently supports colorization.
>  You just need to pass in a --colour on the command line.
>
> -Ben
>



-- 
Paolo Dona'
http://paolodona.com


More information about the rspec-users mailing list