How to use the gulp-istanbul.writeReports function in gulp-istanbul

To help you get started, we’ve selected a few gulp-istanbul examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github typestack / routing-controllers / gulpfile.ts View on Github external
coveragePost() {
        chai.should();
        // chai.use(require("sinon-chai"));
        // chai.use(require("chai-as-promised"));

        return gulp.src([
            "./build/compiled/test/functional/**/*.js",
            "./build/compiled/test/issues/**/*.js",
        ])
            .pipe(mocha())
            .pipe(istanbul.writeReports());
    }
github the-simian / slush-phaser-webpack / gulpfile.js View on Github external
function runner() {
    return gulp
      .src(testGlob)
      .pipe(mocha(mochaOpts))
      //      .on('error', function (err) {
      //        gutil.log(err);
      //        this.emit('end');
      //      })
      .pipe(istanbul.writeReports())
      .on('end', cb);
  }
github typestack / class-validator / gulpfile.ts View on Github external
coveragePost() {
        chai.should();
        chai.use(require("sinon-chai"));
        chai.use(require("chai-as-promised"));

        return gulp.src(["./build/compiled/test/**/*.js"])
            .pipe(mocha())
            .pipe(istanbul.writeReports());
    }
github deepal / node-dukpt / gulpfile.js View on Github external
function test() {
    gulp.src(['./test/**/*.js'], { read: false })
        .pipe(mocha())
        .pipe(istanbul.writeReports({
            dir: 'test-coverage/',
            reportOpts: {
                dir: 'test-coverage/'
            },
            reporters: ['lcov', 'text', 'text-summary', 'cobertura']
        }))
        .pipe(istanbul.enforceThresholds({ thresholds: { global: 1 } }));
    return gulp.src('test-coverage/lcov.info')
        .pipe(coveralls());
}
github deepal / node-dukpt / dist / gulpfile.js View on Github external
function test() {
    gulp.src(['./test/**/*.js'], { read: false }).pipe(mocha()).pipe(istanbul.writeReports({
        dir: 'test-coverage/',
        reportOpts: {
            dir: 'test-coverage/'
        },
        reporters: ['lcov', 'text', 'text-summary', 'cobertura']
    })).pipe(istanbul.enforceThresholds({ thresholds: { global: 1 } }));
    return gulp.src('test-coverage/lcov.info').pipe(coveralls());
}
github QMUI / generator-qmui / gulpfile.js View on Github external
gulp.task('test', ['pre-test'], function (cb) {
    var mochaErr;

    gulp.src('test/**/*.js')
        .pipe(plumber())
        .pipe(mocha({reporter: 'spec'}))
        .on('error', function (err) {
            mochaErr = err;
        })
        .pipe(istanbul.writeReports())
        .on('end', function () {
            cb(mochaErr);
        });
});
github esco / superhash-node / gulpfile.js View on Github external
.on('finish', function(){
      gulp.src(paths.tests)
        .pipe(mocha())
        .pipe(istanbul.writeReports());
    });
});
github howardabrams / node-mocks-http / gulpfile.js View on Github external
.on('finish', function () {
            gulp.src(files.test)
                .pipe(mocha({reporter: 'dot'}))
                .pipe(istanbul.writeReports({
                    dir: './coverage',
                    reporters: ['lcov', 'json', 'html'],
                    reportOpts: { dir: './coverage' }
                }))
                .on('end', done);
        });
});
github the-simian / phaser-glsl-loader / gulpfile.js View on Github external
function runner() {
    gulp
      .src(['./test/main.js'])
      .pipe(mocha(mochaOpts))
      .pipe(istanbul.writeReports())

    .on('end', cb);
  }
github twosigma / goll-e / gulpfile.js View on Github external
.on('finish', function() {
      gulp.src(paths.testFiles)
        .pipe(mochaDefault)
        .pipe(istanbul.writeReports(paths.coverageDir));
    });
});

gulp-istanbul

Istanbul unit test coverage plugin for gulp.

MIT
Latest version published 6 years ago

Package Health Score

47 / 100
Full package analysis