Using Jasmine with Python
You can install Jasmine using pip or by adding it to your
pip install jasmine
__init__ a Project
Initailize a project for Jasmine by creating a spec directory and configuration yaml for you.
At this point you should be able to write your first suite
Jasmine runner to include. You may use dir glob strings.
Once you have set up your
jasmine.yml, you can start the Jasmine server by running
Point your browser to
localhost:8888. The suite will run every time the page is re-loaded.
Start Jasmine on a different port by passing the
jasmine server -p 1337
For Continuous Integration environments, run
jasmine ci in the project build steps:
The browser used by selenium can be changed by exporting
export JASMINE_BROWSER=chrome jasmine ci
or by setting the
jasmine ci --browser firefox
You can also specify a randomization seed for an individual jasmine:ci run for debugging purposes.
jasmine ci --seed 4321