rspec testing is SLOW

2 views
Skip to first unread message

akv292

unread,
Dec 5, 2007, 3:12:37 PM12/5/07
to Ruby on Rails - Higher Ed.
I am setup on Mac (OS X) using RSPEC for my tests. This is the first
time I have used RSPEC before but it is running my tests extremely
slowly. I was trying to use 'Autotest' with Growl, but even just
Autotest in my Terminal window is taking about a minute. Is a minute
normal for 40 tests? They are just the generic tests created from
rspec_scaffold.

<code>
/usr/local/bin/ruby -S script/spec -O spec/spec.opts spec/models/
weather_spec.rb spec/views/weathers/show.rhtml_spec.rb spec/
controllers/weathers_controller_spec.rb spec/views/weathers/
new.rhtml_spec.rb spec/views/weathers/edit.rhtml_spec.rb spec/helpers/
weathers_helper_spec.rb spec/views/weathers/index.rhtml_spec.rb
.............................................

Finished in 49.875295 seconds

45 examples, 0 failures
</code>

What can I do to speed this up? Is this normal? I was thinking about
0.9 seconds was normal.

Any suggestions would be appreciated.
Reply all
Reply to author
Forward
0 new messages