The BusterJS tets from Test-Driven HTML: Why and How
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
README.md
buster.js
form.html
form.test.js
package.json

README.md

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.