SpaceFluxLabs/willpeterlike — pull request #8 by peteygao (2014-05-16 08:44:24+00:00)
Title: Setup Karma + Jasmine unit testing.

Bare bones setup for writing tests. Right now the RequireJS base path isn't loading from the right directory (which is why you see me referencing `src/client/js/Polygon` in PolygonSpec.js instead of just `js/Polygon`). This needs to be fixed ASAP to be able to test other more complicated files with its own RequireJS dependencies...

Also, **EVERYONE MUST** run `npm install` to install Karma and related plugins in order to run the test. Once you have done that, you should be able to run the Karma test runner by using the `./run-test.sh` bash script at the root of the project folder.

By the way, we are using [Jasmine](http://jasmine.github.io/) as our testing framework.