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.
- Clone the repo
git clone firstname.lastname@example.org:jphpsf/jasmine-phantomjs.git cd jasmine-phantomjs
Install dependencies: get Phantom.js from its website and install the ruby dependency by running
Run the tests: use
rake webdriver browser=firefox
I wrote a detailled post about this on my blog.