.on('finish', function() { // generate coverage.json after finish gulp.src(coverageJSON) .pipe(istanbulReport({reporters: ['lcov']})); // Revert the html file gulp.src(htmlFile) .pipe(replace.apply(null, replaceStrs.reverse())) .pipe(gulp.dest('test')); });
.on('finish', function() { gulp.src(coverageFile) .pipe(istanbulReport({ reporterOpts: { dir: './coverage' }, includeAllSources: true, includeUntested : true, reporters: [ 'text', 'text-summary', {'name': 'lcovonly', file: 'frontend.lcov'}, {'name': 'lcovonly', file: 'lcov.info'}, // atom plugin lcov-info {'name': 'json', file: 'frontend.json'} // -> ./jsonCov/cov.json ] })); });
gulp.task('report', function () { return gulp.src('coverage/coverage.json') .pipe(istanbulReport({ reporters: ['lcov'] })); });