I am working on a Django project which is by design quite heavy javascript. For server-side code, we try to have decent testing coverage with unittests, and at a slightly higher level, tests using the Django test client. We have a Hudson / Jenkins server working for CI, with things created more or less line by line in this article , which gives us a test pass and statistics coverage.
I would like to have something similar for our javascript. I would like to be able to test at the unit test level, but also at the integration / acceptance test level. The latter will require a full DOM JS environment and a django server that works. Ideally, I would like to use the Django test client somehow, so that I can set up the server state the way I am used to testing Django. I would also like to run all the tests from the CI server, which would require some kind of headset without a browser (Ubuntu server without a desktop environment).
I found a bunch of things, but many people think that it cannot work on the CI server. Also, integration with Django is often small and does not make good test isolation for the server environment. Finally, I would ideally want something that works at a pretty good pace to keep the test / code cycle as fast as possible.
Are there frameworks that do what I want, or did someone manage to put together the last solution? And are there any established best practices in general for good javascript testing combined with Django (i.e., are there any recommended approaches from the django people that I skip)?
javascript django continuous-integration testing hudson
Shabaz
source share