Discussion: Slow RAILS testing
Afficher un message
Vieux 13/09/2007, 23h22   #3
Alex Young
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Slow RAILS testing

kevin cline wrote:
> My RAILS unit tests take approximately one minute to run. This may
> not sound like much, but it's a real drag on incremental development.
> I imagine most of the slowness in spent in applying the database
> schema to the test database. Is there a memory-resident database that
> would speed up my tests?

I think you can run SQLite in-memory. The Rails people would know more,
though:

http://groups.google.com/group/rubyonrails-talk

I tend to factor tests so that they don't use Rails' built-in fixtures,
though - you really don't need to test the database interface, so it's
pure overhead.

--
Alex

  Réponse avec citation
 
Page generated in 0,04328 seconds with 9 queries