Hi All, This is a follow up to a recent thread on testing javascript in django with qunit http://groups.google.com/group/django-developers/browse_frm/thread/e0656d72e5e863d7
We did some work at the Djangocon.eu sprint on integration testing of Django with Windmill, which should be complementary to the qunit work, qunit does proper unit testing, windmill is more for integration testing (http://en.wikipedia.org/wiki/Integration_testing) I've made a quick branch to demo this, here's how to get it running: git clone g...@github.com:mthornhill/django.git djangowindmill cd djangowindmill/ git fetch origin windmill:windmill git checkout windmill virtualenv . --no-site-packages pip install windmill export PYTHONPATH=$PWD cd tests/ ./runtests.py --settings=test_sqlite admin_integration dependencies are windmill http://www.getwindmill.com/ git http://git-scm.com/ virtualenv http://pypi.python.org/pypi/virtualenv google chrome browser http://www.google.com/chrome/ You should see google chrome pop up and run through a simple test of adding a user to the admin interface, We've started using this on django-lfs (https://bitbucket.org/ diefenbach/django-lfs) and it works well with django-jenkins (https:// github.com/kmmbvnr/django-jenkins) when run under xvfb (http:// en.wikipedia.org/wiki/Xvfb) for headless testing Windmill docs are here: https://github.com/windmill/windmill/wiki/_pages Recording of tests is achieved by 1. Start your dev server: ./manage.py runserver 2. Start windmill with your browser of choice: windmill firefox http://localhost:8000 3. From the windmill menu start recording 4. Navigate through the test you wish to perform by clicking in browser 5. Save your test, you will get a list of python commands that emulate the test 6. Plug your test into your test cases: e.g. see tests/regressiontests/ admin_integration/tests.py in checkout above Hopefully this will be of use to someone. Thanks Michael -- 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 django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.