Testing harness for Angular scopes, controllers, and providers. Streamlines the boilerplate created by needing to inject dependencies for Angular Unit Testing. Abstracts other features, and wraps setup and cleanup operations in easy to use functions.
npm install ngtestharness
Additional modules, should be included in the modules parameter.
ngCookies adds new functionality to the testing harness. (Please see
clearCookies in the API)
Make sure your SpecRunner includes:
The files should include at least the three angular files above, the harness filepath, the paths to all spec and source files, and the path to your modularized template files.
Make sure the Karma configuration includes:
The files should include at least the three angular files above, the harness filepath, the paths to all spec and source files, and all template files.
Install the karma-ng-html2js-preprocessor, preferably through npm
Add the 'karma-ng-html2js-preprocessor' plugin to your karma configuration file.
Add a filepath pattern that will include your html templates in the preprocessors section.
Copyright (c) 2014-2015 Gaikai Inc. (A Sony Computer Entertainment Company). Visit us at https://gaikai.com/ for more information.