gcristofol / cucumberjs-example

Cucumber.js example running tests in PhantomJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Cucumber.js example running tests in PhantomJS.


Languages

Language:JavaScript 85.5%Language:Gherkin 14.5%