Visit brianhempel.github.io/chess_clock to try it out.
Pull requests welcome.
You need a few things to run the tests: ChromeDriver, Node.js, the Javascript selenium-webdriver package, and Mocha. On Mac OS X, this process is easier with Homebrew.
brew install chromedriver
brew install node
# make sure you are in the chess_clock directory for this npm install comannd
npm install selenium-webdriver
npm -g install mocha
Run the tests!
mocha
To run only certain tests, provide a RegExp that will be matched against test names:
mocha --grep "Editing time"
# or
mocha -g Editing
Helpful docs: