# gulp-mocha **Repository Path**: mirrors_floatdrop/gulp-mocha ## Basic Information - **Project Name**: gulp-mocha - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # [gulp](http://gulpjs.com)-mocha [![Build Status](https://travis-ci.org/sindresorhus/gulp-mocha.svg?branch=master)](https://travis-ci.org/sindresorhus/gulp-mocha) > Run [Mocha](http://visionmedia.github.io/mocha/) tests *Keep in mind that this is just a thin wrapper around Mocha and your issue is most likely with Mocha.* ## Install ```sh $ npm install --save-dev gulp-mocha ``` ## Usage ```js var gulp = require('gulp'); var mocha = require('gulp-mocha'); gulp.task('default', function () { return gulp.src('test.js', {read: false}) .pipe(mocha({reporter: 'nyan'})); }); ``` ## API ### mocha(options) #### options.ui Type: `string` Default: `bdd` Values: `bdd`, `tdd`, `qunit`, `exports` The interface to use. #### options.reporter Type: `string` Default: `spec` | `dot` prior to mocha v1.21.0 Values: [reporters](https://github.com/visionmedia/mocha/tree/master/lib/reporters) The reporter that will be used. This option can also be used to utilize third-party reporters. For example if you `npm install mocha-lcov-reporter` you can then do use `mocha-lcov-reporter` as value. #### options.globals Type: `array` Accepted globals. #### options.timeout Type: `number` Default: `2000` Test-case timeout in milliseconds. #### options.bail Type: `boolean` Default: `false` Bail on the first test failure. #### options.ignoreLeaks Type: `boolean` Default: `false` Ignore global leaks. #### options.grep Type: `string` Only run tests matching the given pattern which is internally compiled to a RegExp. ## CoffeeScript For CoffeeScript support, add `require('coffee-script')` with CoffeeScript 1.6- or `require('coffee-script/register')` with CoffeeScript 1.7+. ## License MIT © [Sindre Sorhus](http://sindresorhus.com)