Okay, I admit and I newbie when it comes to this stuff. I'm using
Rails 3 (latest) and I put this line in my Gemfile:

group :test do
  gem 'rspec-rails'
end

I'm guessing that's going to get the latest version of rspec-rails.

As for other questions, I'm running Ruby 1.9.1 on Windows 7 64-bit
(not exactly the best OS for out-of-the-box working and stable use of
Ruby, I know).

In my IDE, If I run the same could out of RSpec, it is basically
instant. If I run RSpec, it reports that the test only took 5 seconds,
but the entire execution was 20 seconds. If I had more dummy tests in
the same Spec file, it is basically instant. So my guess is that 15
seconds is used by Rails and 5 seconds is used by RSpec? My guess is
that the actual code in the tests is a few milliseconds.

On Oct 9, 10:22 pm, David Chelimsky <[email protected]> wrote:
> On Oct 9, 8:32 pm, egervari <[email protected]> wrote:
>
>
>
> > I'm just learning my way through ruby and rails to learn it. One thing
> > I noticed is that testing 1 spec class with 1 test takes about 20
> > seconds. It's not even using any rails functionality at all. I am just
> > concatenating some strings together and doing some math...
>
> > Contrast this with JUnit or ScalaTest... and I could have ran an
> > entire suit of thousands of tests in this amount of time.
>
> > One of the reasons I hated grails (I played with it about a year ago)
> > was that tests ran rediculously slow, so the test/feedback cycle was
> > horrendous... and I just refused to put up with that.
>
> > People knock Java/Spring/Hibernate, but you can have a fully tiered,
> > database-driven app that populates 100-150 rows of data per test that
> > runs 1000+ tests in under 60 seconds.
>
> > Given that knowledge... 20 seconds for 1 test that does nothing seems
> > very, very wrong. Any way I can speed this up?
>
> Even in the worst case I've experienced it's been a few seconds of
> start-up overhead, nothing close to 20. What versions of rspec and
> rails are you using? What command are you using to run the spec? What
> OS, ruby version, etc?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to