Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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()});
});
};
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);
});
});
gulp.task('karma', function(done) {
karma.start({
configFile: __dirname + '/karma.conf.js',
singleRun: !argv.watch
}, done);
});
gulp.task('test', function (done) {
karma.start({
configFile: __dirname + '/karma.conf.js'
}, done);
});
gulp.task('test', function(done) {
var karmaConfig = {
singleRun: true,
configFile: __dirname + '/config/karma.conf.js'
};
karma.start(karmaConfig, done);
});
gulp.task('coverage:client', function (cb) {
karma.start(conf.options.karma);
});
gulp.task('run.karma', ['build.test'], function(done) {
karma.start({
configFile: join(__dirname, 'karma.conf.js'),
singleRun: true
}, done);
});
gulp.task("test", function (done) {
karma.start({
configFile: KarmaConfig,
singleRun: true
}, done);
});
gulp.task('tdd', function (done) {
karma.start(karmaCommonConf, done);
});
gulp.task('tdd', function (done) {
karma.start(karmaConf, done);
});