Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Run your jasmine specs from the command line using phantomjs
branch: master
Failed to load latest commit information.
lib Fix indentation
test-cases Add 1.3.0 and 1.3.1 tests. Fix 1.3.0 support. Require jasmine/version…
.gitignore Adapt phantomjs jasmine example to work w/ the latest jasmine
Gemfile Adapt phantomjs jasmine example to work w/ the latest jasmine
LICENSE Add MIT license to repo and gemspec
README.markdown
Rakefile Add 1.3.0 and 1.3.1 tests. Fix 1.3.0 support. Require jasmine/version…
jasmine-phantom.gemspec Mike #PHANTOM_PATH : Added pahntomjs gem to this so that we no longer…

README.markdown

Jasmine Phantom

Jasmine Phantom provides a rake task that runs your jasmine specs via phantomjs. It requires jasmine >= 1.2.0.

Installation

Add jasmine 1.2.0 and jasmine-phantom to your gemfile:

gem 'jasmine', '1.2.0'
gem 'jasmine-phantom'

and run bundle install.

Then run bundle exec rake jasmine and check http://localhost:8888/ to make sure your jasmine specs are passing.

This gem uses https://github.com/colszowka/phantomjs-gem to automatically download an appropriate PhantomJS instance to the machine.

Finally, run bundle exec rake jasmine:phantom:ci and you should see output similar to:

Waiting for jasmine server on 57832...
[2012-04-18 15:50:52] INFO  WEBrick 1.3.1
[2012-04-18 15:50:52] INFO  ruby 1.9.3 (2011-10-30) [x86_64-darwin10.8.0]
[2012-04-18 15:50:52] INFO  WEBrick::HTTPServer#start: pid=11608 port=57832
Waiting for jasmine server on 57832...
jasmine server started.
phantomjs /some-path-to/jasmine-phantom/lib/jasmine-phantom/run-jasmine.js http://localhost:57832

215 specs | 0 failing

That's it!

Something went wrong with that request. Please try again.