How to use karma.start:
GitHub: osipestar/worked
74 75 76 77 78 79 80 81 82 83 84
gulp.task('build', function(callback) { runSequence('clean', 'build-js', 'test', 'docs', callback); }); gulp.task('test', function (done) { karma.start({ configFile: __dirname + '/config/karma.conf.js', singleRun: true }, done); });
How to use karma.Server:
178 179 180 181 182 183 184 185 186 187 188
['./test/specs/**/*.js'] ); } function unittestTask(done) { new karma.Server({ configFile: path.join(__dirname, 'karma.conf.js'), singleRun: !argv.watch, files: startTest(), args: {