21 lines
528 B
JavaScript
Raw Normal View History

'use strict';
var gulp = require('gulp');
var karma = require('gulp-karma');
var config = require('../config');
gulp.task('unit', ['views'], function() {
// Nonsensical source to fall back to files listed in karma.conf.js,
// see https://github.com/lazd/gulp-karma/issues/9
return gulp.src('./thisdoesntexist')
.pipe(karma({
configFile: config.test.karma,
action: 'run'
}))
.on('error', function(err) {
// Make sure failed tests cause gulp to exit non-zero
throw err;
});
});