[rspec-users] Colorize story output
Ben Mabey
ben at benmabey.com
Mon Jul 7 15:34:58 EDT 2008
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
More information about the rspec-users
mailing list