karma-runner / gulp-karma

Example of using Karma with Gulp.
310 stars 41 forks source link

Is there a way to pass reporters #19

Closed philstrong closed 9 years ago

philstrong commented 9 years ago

example:

gulp.task('test-coverage', function(done) {
    karma.start({
        configFile: __dirname + '/../../my.conf.js',
        reporters: ['coverage'],
        singleRun: true
    }, done);
});

It does not appear to work. I would like to not have 2 conf files (with and without coverage) coverage minifies your js making it hard to tell where problems exist (proper line numbers) 2 conf files identical leads to grunt work to keep then in sync ... or is it gulp work! :)

philstrong commented 9 years ago

Apologies it does work #overtired

karma.start({
    configFile: __dirname + '/../../my.conf.js',
    singleRun: true,
    reporters: ['progress', 'coverage']
}, done);