karma-background
Why?
When using karma within gulp, if you want to programmatically call the karma runner while a server is already started, it ouputs all the logs twice. In grunt-karma they got around this by spawning the karma server as a background process.
This module is not a gulp plugin, all it does is spawn karma in a background process in the same fashion as the grunt-karma plugin.
example
Since I wrote this specifically to be used with gulp, the following example is a gulpfile! You can also look at the gulpfile within this directory.
var gulp = ;var karma = ;var kbg = ;var configFile = __dirname + '/karma.conf.js'; // do a single run per usualgulp; // call the runnergulp; // create a watch task that launches a background processgulp;
License
MIT