How to use the karma.server.start function in karma

To help you get started, we’ve selected a few karma examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github n3-charts / line-chart / gulp-tasks / common / unit-tests.js View on Github external
gulp.task('unit:test', ['unit:compile'], function(done) {
    karma.start({
      configFile: paths.spec.config,
      singleRun: true,
      coverageReporter: {
        type: 'lcovonly',
        dir: paths.coverage.to
      }
    }, function() {done()});
  });
};
github wmluke / angular-bugsnag / gulpfile.js View on Github external
gulp.task('test', function () {
    karma.start({
        configFile: path.resolve('karma.conf.js'),
        browsers: ['PhantomJS'],
        singleRun: true
    }, function (exitCode) {
        gutil.log('Karma has exited with ' + exitCode);
        process.exit(exitCode);
    });
});
github caciviclab / disclosure-backend / gulpfile.js View on Github external
gulp.task('karma', function(done) {
    karma.start({
        configFile: __dirname + '/karma.conf.js',
        singleRun: !argv.watch
    }, done);
});
github shalotelli / angular-multiselect / gulpfile.js View on Github external
gulp.task('test', function (done) {
  karma.start({
    configFile: __dirname + '/karma.conf.js'
  }, done);
});
github assisrafael / angular-bootstrap-form-validation / gulpfile.js View on Github external
gulp.task('test', function(done) {
	var karmaConfig = {
		singleRun: true,
		configFile: __dirname + '/config/karma.conf.js'
	};

	karma.start(karmaConfig, done);
});
github michaelkrone / generator-material-app / generators / app / templates / gulp / tasks / reports.js View on Github external
gulp.task('coverage:client', function (cb) {
  karma.start(conf.options.karma);
});
github ludohenin / angularjs-ts-seed / gulpfile.js View on Github external
gulp.task('run.karma', ['build.test'], function(done) {
  karma.start({
    configFile: join(__dirname, 'karma.conf.js'),
    singleRun: true
  }, done);
});
github bline / bootstrap-webpack-example / gulpfile.js View on Github external
gulp.task("test", function (done) {
    karma.start({
      configFile: KarmaConfig,
      singleRun: true
    }, done);
  });
github willybarro / crafting-table-js / gulpfile.js View on Github external
gulp.task('tdd', function (done) {
  karma.start(karmaCommonConf, done);
});
github podlove / podlove-ui / gulpfile.js View on Github external
gulp.task('tdd', function (done) {
  karma.start(karmaConf, done);
});