Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js (http://nodejs.org) projects, or anywhere that JavaScript can run.
Project description
# Jasmine… For Python!
<a title=”Build at Travis CI” href=”https://travis-ci.org/jasmine/jasmine-py”><img src=”https://api.travis-ci.org/jasmine/jasmine-py.png” /></a>
The [Jasmine](http://github.com/jasmine/jasmine) Python package contains helper code for developing Jasmine projects for Python-based web projects (Django, Flask, etc.) or for JavaScript projects where Python is a welcome partner. It serves up a project’s Jasmine suite in a browser so you can focus on your code instead of manually editing script tags in the Jasmine runner HTML file.
For documentation on writing Jasmine tests, check out the [Jasmine Documentation site](http://jasmine.github.io/).
## Contents This package contains:
A small server that builds and executes a Jasmine suite for a project
A command line script to run your tests (handy for continuous integration)
You can get all of this by: pip install jasmine or by adding jasmine to your requirements.txt.
## __init__ A Project
To initialize a project for Jasmine:
$ jasmine-install
This will create a spec directory and configuration yaml template for you.
## Configuration
Customize spec/javascripts/support/jasmine.yml to enumerate the source files, stylesheets, and spec files you would like the Jasmine runner to include. You may use dir glob strings.
## Usage
#### Standalone Server Start the Jasmine server:
$ jasmine
Point your browser to localhost:8888. The suite will run every time this page is re-loaded.
Start Jasmine on a different port:
$ jasmine -p 1337
Point your browser to localhost:1337.
For a full list of commands, type jasmine -h
#### Continuous Integration
For Continuous Integration environments, add this task to the project build steps:
$ jasmine-ci
The browser used by selenium can be changed by exporting JASMINE_BROWSER
$ export JASMINE_BROWSER=phantomjs $ jasmine-ci
or adding –browser to jasmine-ci
$ jasmine-ci –browser phantomjs
For a full list of commands, type jasmine-ci -h
## Contributing
1. Get a python 2.7, 2.6, 3.3, 3.4, and pypy 1. Get pip: http://www.pip-installer.org/en/latest/installing.html 1. Get virtualenvwrapper: http://virtualenvwrapper.readthedocs.org/en/latest/ 1. git clone this repo 1. Make an environment: mkvirtualenv jasminePy 1. Use that environment: workon jasminePy 1. Install dependencies: pip install -r requirements_dev.txt 1. Run specs: detox
## Support
Jasmine Mailing list: [jasmine-js@googlegroups.com](mailto:jasmine-js@googlegroups.com) Twitter: [@jasminebdd](http://twitter.com/jasminebdd)
Please file issues here at Github
Copyright (c) 2008-2014 Pivotal Labs. This software is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file jasmine-2.3.0.tar.gz.
File metadata
- Download URL: jasmine-2.3.0.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
821b7e1e1813339b77333c02ada83ad763bab1ea4b413f1fb4324868a46de66f
|
|
| MD5 |
2d29c36dedcc15e801dfd58456e10278
|
|
| BLAKE2b-256 |
b7b6181cf325d52127bbe31c6b06a4d617e19d8da9f3fd9ad645fc8606078137
|