Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (12 sloc) 733 Bytes

Test-Driven HTML: Why and How

see: http://www.daviddripps.com/2012/08/09/test-driven-html-why-and-how/

Running the tests

You must have NodeJS and NPM installed to run these tests

Note: The PhantomJS binary is for Mac OSX, if you're running a different OS, download the appropriate binary here: http://phantomjs.org/download.html

  1. navigate to the root directory
  2. $ npm install -d : installs the BusterJS Node module
  3. $ npm start : starts the Buster and PhantomJS servers
  4. $ npm test : runs the tests in form.test.js against the HTML in form.html

When you've finished running your tests you can type $ npm stop to stop the Buster and PhantomJS servers.

Jump to Line
Something went wrong with that request. Please try again.