##Introduction
First, if it’s a Django/Flask project, use jasmine-py! It will (mostly) make your life easier. Run pip install jasmine
and initialize a project using jasmine-install
: a dedicated spec directory will be created for you, and a YAML configuration file will be created. This is an important difference between jasmine-py and non-py-flavouroured-jasmine: outside of django/flask projects, Jasmine runs the specs from a SpecRunner.html
file, where you're expected to include links to your specs in the <head>
tags. In jasmine-py, jasmine.yml
handles your source files and specs.
This is important to note because, if you choose to use Jamsine extensions like jasmine-jquery which allows simpler testing of jQuery elements, be sure to include it in jasmine.yml
.