Exemple #1
0
        .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'));
        });
Exemple #2
0
 .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
       ]
     }));
 });
Exemple #3
0
 gulp.task('report', function () {
   return gulp.src('coverage/coverage.json')
     .pipe(istanbulReport({ reporters: ['lcov'] }));
 });