jdhardy / django-ironpython

fork of django-trunk

Patches to get Django runing under IronPython.

Running the Django Test Suite Under IronPython

I've tried to make it as simple as possible to run the Django test suite on IronPython. The only prerequisite that you should need is a copy of IronPython 2.6; I recommend the installed version as it comes the standard library.

The first step is to get the necessary projects: django-ironpython and django-ironpython tests:

1
2
hg clone http://bitbucket.org/jdhardy/django-ironpython/
hg clone http://bitbucket.org/jdhardy/django-ironpython-tests/

Check django-ironpython-tests\testenv.cmd to make sure that the paths there match your system, especially the IronPython path. The latest versions uses django-mssql instead of sqlite (as my sqlite driver needs some work), and expects an SQL Server instance at localhost\SQLEXPRESS. Downloading and installing SQL Server Express (2005 or 2008) is enough to run the tests.

The next step is to install the extra DLLs needed to run the tests (so far, just System.Data.SQLite):

1
2
3
rem This step will probably require an elevated command prompt
cd django-ironpython-tests
install

Finally, we can run the tests:

1
2
3
4
5
rem Run the entire test suite (currently fails with OutOfMemoryException)
runtests

rem Run individual tests
runtests forms model_forms

It's currently unlikely that many (if any) of the tests will actually pass. That said, run the tests, see what breaks, file issues on it, and provide patches.


This revision is from 2010-02-24 19:57