karma-closure
A Karma plugin that resolves Google Closure dependencies on the fly.
Installation
The easiest way is to keep karma-closure
as a devDependency in your package.json
.
Configuration
// karma.conf.jsmodule { config;};
For an example project, check out ./test-app/
IIT preprocessor
When using iit
or ddescribe
, Jasmine only executes these tests (resp. the patched version that comes with Karma). But still, all the tests (even those that are not actually executed) are shipped to the browser, parsed and the definition of the tests is executed. On a huge project, this can easily take seconds.
The iit
preprocessor looks for test files that contain iit
and only ships these tests (and their dependencies), which can significantly speed up running the tests during the development !
For more information on Karma see the homepage.