On Mon, Jul 7, 2008 at 9:00 AM, Russell Keith-Magee
<[EMAIL PROTECTED]> wrote:
> 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.

This looks like a great idea!

> 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.

One thing to watch for: I'm nearly 100% sure this won't work under the
buildbot -- it looks like since the settings file is written in the
same directory as the code you'll get conflicts between simultaneously
running tests. I think you'll need to use a temp dir.

That said, I don't really know anything amount about how the buildbot
sets up its environment, so it might actually work... And frankly the
buildbot isn't in great health anyway, so I wouldn't be outraged if
you broke it -- it might prompt me or someone to actually start
maintaining it again.

> 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.

One thing this brings up: we really need a way to skip certain tests
under certain setups: if for some reason this can't be made to work on
windows, the tests are still very valuable run elsewhere. Also think
of stuff like the serializer tests and MySQL. Don't mean to derail,
but tests like this are awesome even if they can't be properly run
everywhere.

Jacob

--~--~---------~--~----~------------~-------~--~----~
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