On 7/13/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
Ok; i've just attached a first pass set of patches to ticket #2333.
The objectives of these patches:
- Add a 'test' target to django-admin that will start the test suite
- Provide a set of testing utilities of capability equivalent to those currently offered by runtests
- Refactor the existing Django tests to use the new framework
This is not yet attempting to add fixtures, context testing etc - thats the next step, once there is a basic test framework to work in.
I've attached a walkthrough of the patches to the ticket - there are a lot of changes, but they're not that complex, mostly mechanical.
Also - I've used unittest here to replicate the capabilities of tests/runtests.py, but I've tried to keep the door open for those that want to use nose (or anything else for that matter). The method that is used by syncdb to kickstart testing is user-configurable, and I've kept the 'useful utilities', like db setup/teardown factored and available for others to use.
Comments?
Yes, please post the patch before committing -- this is definitely a big thing.
Ok; i've just attached a first pass set of patches to ticket #2333.
The objectives of these patches:
- Add a 'test' target to django-admin that will start the test suite
- Provide a set of testing utilities of capability equivalent to those currently offered by runtests
- Refactor the existing Django tests to use the new framework
This is not yet attempting to add fixtures, context testing etc - thats the next step, once there is a basic test framework to work in.
I've attached a walkthrough of the patches to the ticket - there are a lot of changes, but they're not that complex, mostly mechanical.
Also - I've used unittest here to replicate the capabilities of tests/runtests.py, but I've tried to keep the door open for those that want to use nose (or anything else for that matter). The method that is used by syncdb to kickstart testing is user-configurable, and I've kept the 'useful utilities', like db setup/teardown factored and available for others to use.
Russ Magee %-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django developers" 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/django-developers
-~----------~----~----~----~------~----~------~--~---
