techpines / bone.io

Realtime HTML5 Framework

Home Page:bone.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

We need tests

techpines opened this issue · comments

I need to setup the test harness, and then we need to start testing.

Install mocha and chai as dev dependencies.

http://visionmedia.github.com/mocha/

http://chaijs.com/

Then look at how asset-rack has it's tests setup:

  • There is a line in the package.json called scripts: {test: 'some stuff'}, and basically we want to copy that. That makes it so that all you need to do to run the tests is npm test.
  • Then we want to add a mocha.opts file that is in test/mocha.opts in asset-rack.