Use to run your Jasmine 2 specs using phantom.js. Useful for running your tests in your console or CI.
Setup:
- Download
phantom_runner.js
and put it in your project - Include the
phantom_callback.html
snippet in yourSpecRunner.html
after other Jasmine files are included
To use:
- Call
phantomjs phantom_runner.js #{path to SpecRunner.html}
- If no color is desired in the output, then add the
--no-color
flag either before or after the location of theSpecRunner.html
, e.g.phantomjs phantom_runner.js #{path to SpecRunner.html} --no-color
Cool, "merged" the updates. Thanks for the cleanup!