Howdy,

Although the thread is a little old, but I've found a neat solution around
the problem.

Spork + Guard (
http://blog.carbonfive.com/2010/12/10/speedy-test-iterations-for-rails-3-with-spork-and-guard/
)

Spork keeps rake in a holding pattern and spawns a ruby process with the
dependencies loaded each time you need to run a test. Guard watches key
files, and triggers spork to reload (e.g. edit Gemfile) when necessary.

Just need to configure Spork for cucumber and rspec and make sure you use
the drb option. Then run autotest and you can be auto specing and
autofeaturing in no time.

All this runs nicely on top of rails3 as far as I can see...

Cheers,
Jason


On 15 December 2010 09:52, dnagir <[email protected]> wrote:

> Hi Guys,
>
> I am a bit tired of waiting for for the [rails 3] specs to run after I
> save a file. After saving, I have to wait 10 secs or so for my specs
> only to be executed (by autotest).
>
> It is just a bit annoying, so I did:
>
>  time rspec spec/
>  ...
>  Finished in 9.68 seconds
>  95 examples, 0 failures
>
>  real  0m19.518s
>  user 0m17.810s
>  sys  0m0.970s
>
> This sounds like the tests themselves are fast enough, but the startup
> time is about 10 secs.
>
> I heard a lot that bundling the dependencies and booting rails takes
> the most of time.
> Unfortunately I was not able to find an easy solution to speed it up,
> except spork.
>
> Can somebody recommend what we can do about it?
>
> Cheers,
> Dima.
> http://ApproachE.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rails-oceania%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to