tandrewnichols/log-block

View on GitHub
gulp/cover.js

Summary

Maintainability
A
50 mins
Test Coverage
var gulp = require('gulp');
var config = require('./config');
var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');

gulp.task('cover', ['clean:coverage', 'instrument'], function() {
  return gulp.src(config.tests, { read: false })
    .pipe(mocha({
      reporter: 'dot',
      ui: 'mocha-given',
      require: ['coffee-script/register', 'should', 'should-sinon']
    }))
    .pipe(istanbul.writeReports());
});