'use strict';

var gulp = require('gulp'),
    jshint = require('gulp-jshint'),
    karma = require('karma').server;

var KARMA_CONFIG = '/karma.conf.js';

gulp.task('lint', function () {
    gulp.src('scripts/*.js')
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});

gulp.task('test', function (done) {
    karma.start({
        configFile: __dirname + KARMA_CONFIG,
        singleRun: false
    }, done);
});

gulp.task('default', ['test']);
'use strict';

var gulp = require('gulp'),
    jshint = require('gulp-jshint'),
    karma = require('karma').server;

var KARMA_CONFIG = '/karma.conf.js';

gulp.task('lint', function () {
    gulp.src('scripts/*.js')
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});

gulp.task('test', function (done) {
    karma.start({
        configFile: __dirname + KARMA_CONFIG,
        singleRun: false
    }, function () {
    	gulp.start('test');
    });
});

gulp.task('default', ['test']);
Fix gulp exit process with test
Fix gulp exit process with test
