gulp-core-build-karma is a
gulp-core-build subtask for running unit tests using karma/phantomjs/mocha/chai. This setup allows you to run browser based testing.
gulp-core-build-karma is a gulp-core-build plugin which uses KarmaJS to configure a browser to run a bundle of code, primarily unit tests using mocha.
Simply register the task in a gulp-core-build tree, and it will automatically look for a karma.config.js file.
The default karma config, which can be obtained by running the task with the
always looks for a file called
src/tests.js and uses this as the entry point for the bundle which will
The task will launch the PhantomJS browser and begin automatically running mocha tests.
Once testing is complete, a coverage report is written to the
A number of plugins for karma are automatically configured, including:
Sets the path to the Karma Configuration file to use. If one has not been created, this task
will prompt the user to run it again with the