Why is RSpec so slow under Rails?

Posted by Adrian Dunston on Stack Overflow See other posts from Stack Overflow or by Adrian Dunston
Published on 2008-09-15T20:46:06Z Indexed on 2010/06/03 17:14 UTC
Read the original article Hit count: 283

Filed under:
|
|

Whenever I run rspec tests for my Rails application it takes forever and a day of overhead before it actually starts running tests. Why is rspec so slow? Is there a way to speed up Rails' initial load or single out the part of my Rails app I need (e.g. ActiveRecord stuff only) so it doesn't load absolutely everything to run a few tests?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby