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.

Files for django-jasmine, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size django-jasmine-0.2.tar.gz (41.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page