Skip to main content

Jasmine Javascript testing integration for Django.

Project description

django-jasmine
============

django-jasmine integrates the [Jasmine Javascript testing framework][1] with [Django][2]. Jasmine is a behavior-driven development framework for testing your JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests.

[1]: http://pivotal.github.com/jasmine/
[2]: http://www.djangoproject.com/

installation
============

1. pip install django-jasmine
2. Add 'django_jasmine' to your settings.INSTALLED_APPS.
3. Add settings.JASMINE_TEST_DIRECTORY, containing the path to your javascript jasmine test files. Files.json should be in this directory and all test files should be in settings.JASMINE_TEST_DIRECTORY + '/spec' *
4. Add all Javascript files (including jQuery, and any other libraries) to files.json
5. Add a urlconf to include('django_jasmine.urls').
6. Visit the URL you've included in your urlconf to display Jasmine test results.

*See the example directory for more information.*

debug
=====

If you encounter some errors that isn't obvious to debug, you can add
"django_jasmine" to your loggers.

license
=======

Copyright (c) 2010 Movity, Inc
Licensed new-style BSD, also containing Jasmine, which is licensed MIT. See LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-jasmine-0.2.tar.gz (41.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page