Created
August 21, 2015 09:42
-
-
Save andrewconnell/85e6d78aa3677172d50a to your computer and use it in GitHub Desktop.
Gulp task to run all tests in the project using Mocha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '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