>> t...@rubbish:~/django/trunk/tests$ python runtests.py
>> --settings=settings
>>
>> to execute the core set of tests.  However, it takes quite a
>> while (on the order of hours) on my old box.  Is there a way to
>> just run tests on the regressions/ subdirectory or even just a
>> particular file within?
>>
>> How do core devs typically make testing a subset faster?
>>
> Hours?  What database are you using?

For what I'm doing, it doesn't matter much currently, so whatever 
you want if it will make it faster. :)  However for the record, 
it's currently sqlite, though I suppose I could point it at 
:memory: instead.  I thought the test harness automatically 
detected sqlite and chooses :memory: as the database source for 
testing purposes,

> On my oldest slowest machine (7 year old WinXP box with 384M of memory),

Then you're not far off -- my home work-horse is an 8-year-old 
Celeron laptop clocked at 800MHz with 384M of memory running 
Debian off a fairly slow HDD.  After "an hour and change" (fairly 
close to your 1.5hr benchmark) at lunch, I aborted on the 
assumption that there had to be a better way.  Especially for 
tight iterations on changes against trunk (working on a patch 
against core/trunk from a ticket I created).  I've svn-up'ed to 
the latest to ensure I've got everything as current as possible, 
but I'm fairly sure that was already the case.  I manually 
specified ":memory:" and sqlite, letting it run to completion 
this time and it took just over an hour:

    Ran 867 tests in 3775.195s

I'll try Russel's suggestion to minimize the time spent running 
so I can do some quick(er) iterations before re-running the full 
suite.

Thanks,

-tim




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to