GETTING STARTED

Jasmine Standalone

Included is a sample app and sample tests. Open SpecRunner.html and run the included specs. Both the source files and their respective specs are linked in the <head> of the SpecRunner.html.

To start using Jasmine, replace the source/spec files with your own.

Load the SpecRunner.html in your favorite browser

More Information

Jasmine for Ruby

Add the Jasmine gem to your gemfile:

gem 'jasmine'

Initialize Jasmine in your project

With Rails:
rails generate jasmine:install
Without Rails:
jasmine init

Run your tests

Start a server:
rake jasmine
Run tests in browser:
rake jasmine:ci

More Information

Jasmine for Python

Add Jasmine to your requirements.txt

Initialize Jasmine in your project

jasmine-install

Run your tests

Start a server:
jasmine
Run tests in browser:
jasmine-ci

More Information

Jasmine for Node.js

Add Jasmine to your package.json

npm install --save-dev jasmine

Initialize Jasmine in your project

./node_modules/.bin/jasmine init

Set jasmine as your test script in your package.json

"scripts": { "test": "jasmine" }

Run your tests

npm test

More Information

Gulp Jasmine Browser

View README

Community Supported

Grunt Contrib Jasmine