cucumberjs-example icon indicating copy to clipboard operation
cucumberjs-example copied to clipboard

Cucumber.js example running tests in PhantomJS.

Cucumber.js with PhantomJS

A quick example showing how to use Cucumber.js with PhantomJS.

Install

  1. brew install phantomjs - install phantomjs
  2. npm install -g grunt-cli - install grunt command line tools
  3. npm install - install dependencies
  4. phantomjs --webdriver=4444 - start phantom
  5. in another terminal window use grunt to run tests

Links

Notes

This is using a fork of cucumber that adds colorized output.

http://behrang.github.io/presentations/cucumber/2013-03-12/ was extremely helpful.

Todo

Figure out how to not have to start Phantom manually before running tests.