On Wed, Oct 13, 2010 at 3:31 AM, Jorge Vargas <jorge.var...@gmail.com> wrote: > Hello, > > I recently inherited a project that uses a lot of model validations > and is mainly just a model (we have two django apps that use it as > their backend). > > The test suite currently returns > > Ran 460 tests in 980.347s > That is running on a SQLite db. > > Is this normal/expected behavior ? is there a way to speed this up ?
All you've told us is that you have 460 tests. That doesn't tell us if it's 460 simple tests, or 460 complicated tests, or some mix of the two, or the hardware you are running on, or any of the other myriad details that would enable us to give you any meaningful feedback on how long you should expect 460 tests to take to run. It's also impossible to answer whether model validators are to blame. They're not known a-priori to be exceptionally slow, although some do require database queries, which might be the cause of a slowdown. Whether that explains your problems is impossible to tell without more details. The only indicative value I can give you is that Django's own test suite consists of 2300 tests, and takes about 5 minutes to run on my 3 year old MacBook Pro under SQLite. > We have some custom code both for the test running and for making the > project works therefore if this not not a normal behavior I suspect > that the problem may lie in there. The best way to answer this is to run a profiler over your code, and see where the hotspots are. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.