geoadmin/mf-geoadmin3 — pull request #8 by gjn (2013-06-13 14:00:43+00:00)
Title: Unittest Framwork

This PR integrates a first simple framework to create unittest for angularJS applications. It uses
- karma for configuration and running
- phantomjs as testrunner on the console
- mocha as the unit test framework (included in karma)
- expect as the assertion library
- angular-mock to provide basic mock-ups for angularJS applications. Angular-mocks is an official part of angularjs.

Changes include the following:
- Adding karma as part of the node-modules install process
- Karma configuration file
- Depending libraries
- First test specification for existing MapController
- Additional buildout step to run the javascript tests

Note:
Karma offers TDD capabilities together with phantomJS. On your console, use the same command as specified in the buildout.cfg [jstest] part but ommit the --run-once parameter. Karma will re-rerun the tests whenever a file is changed.

Please review.