On Wed, May 25, 2011 at 1:00 PM, Ken Egervari <ken.egerv...@gmail.com>wrote:

> I am using factory_girl, and I have discovered that it is chiefly
> responsible for making my tests run slow.
>
> I have posted a question about this on Stack Overflow:
>
>
> http://stackoverflow.com/questions/6128476/how-can-i-get-factory-girl-to-never-hit-the-database-if-i-am-calling-factory-buil
>
> Anyway, I was curious what you guys use to create Factories?
>
> 1. Do you put up with Factory_girl?
> 2. Did you configure Factory_girl differently to make it run faster?
> 3. Do you use something else? May I ask what?
>
> Thanks!
>
> Ken
>
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


In Rails land, tests are "slow" because of the database. Sorry, but there is
just no way around it. Sure, you could mock everything out, but we all know
the implications of doing that...

rspec-core has 691 examples and takes 2 seconds to run. That would be
amazing if we could have that for our Rails apps.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to