aurelia-view-manager
Version:
A view manager for aurelia plugins. Add support for overriding views, and multiple frameworks
42 lines (38 loc) • 884 B
JavaScript
var gulp = require('gulp');
var Karma = require('karma').Server;
/**
* Run test once and exit
*/
gulp.task('test', function (done) {
new Karma({
configFile: __dirname + '/../../karma.conf.js',
singleRun: true
}, done).start();
});
/**
* Watch for file changes and re-run tests on each change
*/
gulp.task('tdd', function (done) {
new Karma({
browsers: ['Chrome'],
configFile: __dirname + '/../../karma.conf.js'
}, done).start();
});
/**
* Run test once with code coverage and exit
*/
gulp.task('cover', function (done) {
new Karma({
configFile: __dirname + '/../../karma.conf.js',
singleRun: true,
reporters: ['coverage'],
preprocessors: {
'test/**/*.js': ['babel'],
'src/**/*.js': ['babel', 'coverage']
},
coverageReporter: {
type: 'html',
dir: 'build/reports/coverage'
}
}, done).start();
});