1.2.0 • Published 7 years ago

gulp-karma-run v1.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

gulp-karma-run

Gulp karma plugin without shit and deprecated calls

Usage

const karmaRun = require('gulp-karma-run');

/**
 * Simple usage
 */
gulp.task('test:frontend', () => gulp.src('./test/**/**.spec.js').pipe(karmaRun()));

/**
 * Override config
 * and custom handlers
 */
gulp.task('test:frontend', (done) => {
    gulp.src('./test/**/**.spec.js')
        .pipe(karmaRun({
            configFile: './karma.conf.js', // default is process.cwd()/karma.conf.js
            singleRun: true // default is true
        }))
        .on('end', () => console.log('Karma terminated successfully'))
        .on('error', (errorCode) => console.log(`Karma terminated with error code ${errorCode}`));
});
1.2.0

7 years ago

1.1.0

7 years ago

2.0.0

8 years ago

1.0.0

8 years ago