gulp-istanbul-enforcer

Plugin for gulp that enforces coverage thresholds from Istanbul.
Based on grunt-istanbul-coverage, which enforces istanbul coverage in grunt.
Installation
npm install --save-dev gulp-istanbul-enforcer
Example
Then, add it to yourgulpfile.js
:var coverageEnforcer = require("gulp-istanbul-enforcer");
gulp.task('enforce-coverage', function () {
var options = {
thresholds : {
statements : 100,
branches : 100,
lines : 100,
functions : 100
},
coverageDirectory : 'coverage',
rootDirectory : ''
};
return gulp
.src('.')
.pipe(coverageEnforcer(options));
});