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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080707/092f3ade/attachment.html>
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-usersHey Paolo, This looks look. However, the story runner currently supports colorization. You just need to pass in a --colour on the command line. -Ben
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
On 07/07/2008, Ben Mabey <ben at benmabey.com> wrote:> > Hey Paolo, > This looks look. However, the story runner currently supports colorization. > You just need to pass in a --colour on the command line. > > -BenCould you give me some sample syntax on how to achieve this please? Aidy
On Jul 8, 2008, at 8:23 AM, aidy lewis wrote:> On 07/07/2008, Ben Mabey <ben at benmabey.com> wrote: >> >> 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 > > Could you give me some sample syntax on how to achieve this please?ruby stories/all.rb -c Cheers, David
Hi David,> > > > ruby stories/all.rb -c >Fantastic. Is it possible to create HTML from this? Aidy
yes. -f html On Tue, Jul 8, 2008 at 8:41 AM, aidy lewis <aidy.lewis at googlemail.com> wrote:> Hi David, > > > > > > > > ruby stories/all.rb -c > > > > Fantastic. Is it possible to create HTML from this? > > Aidy > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080708/588f731a/attachment.html>
Actually, for the completeness. please see this: http://yiwenandsoftware.wordpress.com/2008/06/25/intergrate-rspec-story-runner-in-cruisecontrolrb-build-with-html-report/ On Tue, Jul 8, 2008 at 8:59 AM, Yi Wen <hayafirst at gmail.com> wrote:> yes. -f html > > > On Tue, Jul 8, 2008 at 8:41 AM, aidy lewis <aidy.lewis at googlemail.com> > wrote: > >> Hi David, >> >> > > >> > >> > ruby stories/all.rb -c >> > >> >> Fantastic. Is it possible to create HTML from this? >> >> Aidy >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080708/07db6c4a/attachment.html>