The apps I work on at work have 180+ models each. There isn't
duplication, but just way too many features. :(

What Greg said works pretty well for us - factory_girl or any of the
other factory libraries are great.

You could also mock the AR find/delete/create/update calls if you want
and return objects afterwards. That's helped me in some side projects.

I wish my test suite would run in 30 seconds though!

On May 27, 2:26 pm, Greg Donald <[email protected]> wrote:
> On Wed, May 27, 2009 at 12:02 PM, jko170 <[email protected]> wrote:
>
> > My app has 64 models and my test are so slow. 30 seconds at least.
>
> 30 seconds isn't bad at all.
>
> > I'm using Machinist. How can I speed up my tests? It has really killed
> > my motivation to test at all...
>
> > I'm using rails-test-serve but that only brings the test down to 15
> > seconds....thanks for any help!
>
> You might try moving your unit tests into memory.
>
> http://www.thoughtbot.com/projects/factory_girl/
>
> --
> Greg Donaldhttp://destiney.com/
--~--~---------~--~----~------------~-------~--~----~
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