Re: [rspec-users] best way to modify spec (the command-line tool)?

2008-01-04 Thread Giles Bowkett
> Hey Giles, we've already done this for you! > > spec some_directory --format profile > > This will print out the 10 slowest examples (regardless of threshold). > > Cheers, and welcome to the RSpec community! Doh! Gracias. :-) -- Giles Bowkett Podcast: http://hollywoodgrit.blogspot.com Blog: h

Re: [rspec-users] best way to modify spec (the command-line tool)?

2008-01-04 Thread David Chelimsky
On Jan 4, 2008 10:55 AM, Ben Mabey <[EMAIL PROTECTED]> wrote: > David Chelimsky wrote: > > On Jan 4, 2008 10:14 AM, Ben Mabey <[EMAIL PROTECTED]> wrote: > > > >> On rspec's specs I have noticed they have a profiling flag that they > >> pass into the spec command. What is does is print out the long

Re: [rspec-users] best way to modify spec (the command-line tool)?

2008-01-04 Thread Ben Mabey
David Chelimsky wrote: > On Jan 4, 2008 10:14 AM, Ben Mabey <[EMAIL PROTECTED]> wrote: > >> On rspec's specs I have noticed they have a profiling flag that they >> pass into the spec command. What is does is print out the longest specs >> with there times. So you may not have to rewrite this..

Re: [rspec-users] best way to modify spec (the command-line tool)?

2008-01-04 Thread David Chelimsky
On Jan 4, 2008 10:14 AM, Ben Mabey <[EMAIL PROTECTED]> wrote: > On rspec's specs I have noticed they have a profiling flag that they > pass into the spec command. What is does is print out the longest specs > with there times. So you may not have to rewrite this.. I have tried > using the flag on

Re: [rspec-users] best way to modify spec (the command-line tool)?

2008-01-04 Thread George Anderson
"ghetto profiler": how appropriate for rails work these days. You might ask on the rspec-devel list if you haven't already. http://rubyforge.org/mail/?group_id=797 While you're waiting for a response, consider watching Zed's interpretive piece in which he channels the King: http://www.youtube.co

Re: [rspec-users] best way to modify spec (the command-line tool)?

2008-01-04 Thread Ben Mabey
On rspec's specs I have noticed they have a profiling flag that they pass into the spec command. What is does is print out the longest specs with there times. So you may not have to rewrite this.. I have tried using the flag on my own projects but it didn't work. Maybe someone from the dev team c

Re: [rspec-users] best way to modify spec (the command-line tool)?

2008-01-04 Thread David Chelimsky
On Jan 4, 2008 9:55 AM, Giles Bowkett <[EMAIL PROTECTED]> wrote: > Hi all, where I work we've cooked up a kind of ghetto profiler for our > specs. It basically just does this: > > time = Time.now > # run the spec > puts "woah! dude. long spec." if time > 1.second > > I'm simplifying here. I think t

[rspec-users] best way to modify spec (the command-line tool)?

2008-01-04 Thread Giles Bowkett
Hi all, where I work we've cooked up a kind of ghetto profiler for our specs. It basically just does this: time = Time.now # run the spec puts "woah! dude. long spec." if time > 1.second I'm simplifying here. I think the threshold is actually 0.1 seconds, and we use more precise language, and hig