Why is rspec so slow? because he downloads all the environement, loads the fixtures and all this jazz.
Is there a way to speed up the initial loading of Rails , you can try using mocks instead of relying on a database, this is really correct for unit testing and will certainly speed up your unit tests. An add-on using a dedicated server, as @ Scott Matthewman points out, can help, just like the zentest autotest mentioned by @ Marc-Andre Lafortune
Is there a way to highlight the part of my Rails application that I need (for example, only ActiveRecord stuff), so it doesnโt download absolutely everything to run a few tests? What about this p>
rake test:recent
I'm not sure how the rspec task integrates with this, but you can certainly use a test: a recent task as a template for executing rspec tags if.
rake test:rspec:recent
doesn't exist yet
Jean Sep 16 '08 at 16:33 2008-09-16 16:33
source share