Hey list, The time it takes for my specs to run is starting to get a little long (~45 seconds), and annoying enough for me to do something about it.
I've written a simple formatter that prints out the top 10 slowest examples in an attempt to identify any low hanging fruit amongst a spec suite. http://rubyforge.org/tracker/index.php?func=detail&aid=13943&group_id=797&atid=3151 Just for fun... here's my Top 10: (I haven't tried speeding any of these up yet, by the way.) 0.4318470 /users/new.html.erb should render new form 0.4248100 /users/edit.html.erb should not dipslay the brand admin checkbox if the current user is also the target user and a brand admin 0.4230980 /users/edit.html.erb should have a new user heading 0.4189370 /users/edit.html.erb should not display the brand admin checkbox if the current user is not a brand admin 0.2828910 <<censored>> Sorry, this one gave away some business details -- we're a start-up still in stealth mode. 0.2748610 /users/edit.html.erb should display the brand admin checkbox if the current user is a brand admin 0.2747120 /users/edit.html.erb should not dipslay the brand admin checkbox if the current user is also the target user but not a brand admin 0.2699700 /users/edit.html.erb should render edit form 0.2692280 /users/new.html.erb should have a new user heading 0.2124850 GiftsController handling GET /active.js should construct the Gift::GiftActiveBrandQuery Cheers Ian
_______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
