Re: Speeding the code-test-debug cycle

2010-02-05 Thread Russell Keith-Magee
On Sat, Feb 6, 2010 at 1:25 AM, Malcolm Box wrote: >> From there, I have only been able to reduce test time down from hours >> to minutes. Tests ought to run in seconds - so fast that you can run >> them after every few edits - TDD. > > Totally agree, and what I'm looking

Re: Speeding the code-test-debug cycle

2010-02-05 Thread Malcolm Box
Hi, Thanks for the suggestions. 2010/2/2 Phlip > Malcolm Box wrote: > > > Has anyone got any ideas on how to speed this up - for instance, is there > a > > way to say "use an existing test database"? > > Per my other advice to use fab and a fabfile with a test() target in

Re: Speeding the code-test-debug cycle

2010-02-02 Thread Phlip
Malcolm Box wrote: > Has anyone got any ideas on how to speed this up - for instance, is there a > way to say "use an existing test database"? Per my other advice to use fab and a fabfile with a test() target in it, you should set its (local()) target to something like python manage.py test

Speeding the code-test-debug cycle

2010-02-02 Thread Malcolm Box
Hi, As my django application has grown I'm noticing I'm spending longer and longer waiting for ./manage.py test to start up - ie create all the tables etc. Not helped of course by working on a laptop with a slow disk, as I suspect many of us do these days. This is slowing down my test-debug