redoc/build/tasks/test.js

14 lines
306 B
JavaScript
Raw Normal View History

2015-12-10 00:46:27 +03:00
var gulp = require('gulp');
var Server = require('karma').Server;
/**
* Run test once and exit
*/
2016-05-20 22:56:10 +03:00
gulp.task('test', ['concatPrism', 'inlineTemplates', 'injectVersionFile'], function (done) {
2015-12-10 00:46:27 +03:00
new Server({
configFile: __dirname + '/../../karma.conf.js',
singleRun: true
}, done).start();
});