Jasmine tests example running with Phantom.js
JavaScript Ruby CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
spec
src
Gemfile
Gemfile.lock
README.md
Rakefile
SpecRunner.html

README.md

Jasmine Phantom.js example

This is an example Jasmine test runner using Phantom.js. It also includes an example using Webdriver.

The test suite used is the one that comes with the default Jasmine 1.2.0 distribution.

Usage

1) Clone the repo

git clone git@github.com:jphpsf/jasmine-phantomjs.git
cd jasmine-phantomjs

2) Install dependencies: get Phantom.js from its website and install the ruby dependency by running bundle install

3) Run the tests: use rake phantomjs or rake webdriver browser=firefox

Blog post

I wrote a detailled post about this on my blog.

License

WTFPL