Those two lines will only start to come into play when you actually load
fixtures. If you have no fixtures, it shouldn''t matter what you set
them
to. Someone on the list should correct me if I''m wrong, but
transactional
fixtures typically reduce the time it takes to run specs.
How many examples are you running? I''ve got a few apps now with
several
hundred examples, all of my model specs use fixtures and everything is quite
fast for me now that non-model specs use mocks/stubs. For me, the longest
part of running specs is loading the rails framework. To isolate that, just
run script/console on the same app and see how long it takes.
On 5/12/07, Scott Taylor <mailing_lists at railsnewbie.com>
wrote:>
> Is there someway to remove all fixture processing? Can I set the
> following two lines in spec_helper.rb to remove all fixture processing ?
>
> config.use_transactional_fixtures = false
> config.use_instantiated_fixtures = false
>
> I was actually able to setup a sqlite in-memory database without a
> problem, using topfunky''s plugin.
>
> Even with drb, mocks & stubs, and an in-memory database, and no
> (used) fixtures, things seem to be quite slow. Maybe this is more of
> a reflection on my aged Mac than anything else...
>
> I think the real bottleneck is occurring in rake. I''ll have to
> checkout a profiler.
>
> Thanks,
>
> Scott
>
>
>
> On May 12, 2007, at 11:34 AM, Jeff Dean wrote:
>
> > Are you using mocks/stubs for the controllers and views? This has
> > made the biggest difference in my specs. The other thing
that''s
> > sped up my specs is making sure I''m only loading fixtures for
the
> > specs that absolutely need it on the models.
> >
> > But no - I''ve never used in-memory databases, so I
can''t help you
> > there.
> >
> > On 5/12/07, Scott Taylor < mailing_lists at railsnewbie.com>
wrote:
> > My specs are still taking to long to run in a rails app. Is anyone
> > using an in-memory database to run their specs? Any pointers or tips?
> >
> > Scott
> >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/rspec-users/attachments/20070513/ecfe6fc7/attachment.html