Hi all,

I've been looking at #6017 and #5943 of late. These two tickets have
been around for a while; one of the biggest reasons that they have
taken so long to address is that they cover an area of Django where
the testing isn't automated - the behaviour of django-admin.py and
manage.py. As a result, it's very hard to validate that when a change
is made that the change doesn't break some obscure use case for these
scripts.

I've just uploaded a patch to #6017 that will hopefully address this
issue. The patch 'django-admin-tests.diff' contains a prototype test
framework for django-admin and manage.py scripts. It works by spawning
a child process using popen3, setting up the test environment using a
bash script and checking the contents of stdout an stderr as a test
condition.

At this point, I'd appreciate some feedback. In particular, I need a
sanity check that the test scripts run on other unix-based systems.
I've run this test under OS X Leopard, and all the tests pass for me.
However, I don't have particularly ready access to a Linux etc
development box, so I can't confirm if there is any platform-specific
wierdness that I need to account for.

I would also appreciate it if anyone could confirm that the same test
approach will work for Windows. I have almost no access to Windows
boxes for development purposes, so I'm completely in the dark here.
However, as far as I am aware, popen3 should be available and operate
in much the same fashion as it does under Unix, so the only
modifications required should be writing a .BAT script to set up the
environment and modifying the utility routine that starts the script.
If I'm wrong, any suggestions for an alternate approach are welcome.

Yours,
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 django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to