Skip to content

Instantly share code, notes, and snippets.

@andrewconnell
Created August 21, 2015 09:42
Show Gist options
  • Select an option

  • Save andrewconnell/85e6d78aa3677172d50a to your computer and use it in GitHub Desktop.

Select an option

Save andrewconnell/85e6d78aa3677172d50a to your computer and use it in GitHub Desktop.
Gulp task to run all tests in the project using Mocha
'use strict';
var gulp = require('gulp');
var mocha = require('gulp-mocha');
/**
* Execute all tests.
*/
gulp.task('run-tests', function () {
return gulp.src('test/**/*.js', { read: false })
.pipe(mocha({ reporter: 'spec' }));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment