Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-ddescribe-iit with all npm packages installed. Try it out:

var gulpDdescribeIit = require("gulp-ddescribe-iit")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-ddescribe-iit v1.3.0

Don't accidentally disable all your tests!

gulp-ddescribe-iit

Build Status Coverage Status dependencies NPM Version

Based on @btford's grunt-ddescribe-iit, with a gulp and ANSI color makeover. Consider using gulp-acorn-ddescribe-iit to minimize false positives. If submitting patches, please submit patches to both projects, or at least file a bug to make sure they maintain feature parity.

Hows it look!?

This is super important, I'm glad you asked. I spent a good few minutes trying to make it look decent.

screen shot 2015-07-07 at 10 13 11 pm

Usage

var ddescribeIit = require('gulp-ddescribe-iit');

// I mean, that's basically it --- there isn't much to it.
gulp.task('ddescribe-iit', function(done) {
  return gulp.src(['modules/**/*.spec.ts', 'modules/**/*_spec.ts']).
     pipe(ddescribeIit({ allowDisabledTests: false }));
});

Options

OptionDescription
allowDisabledTestsIf set to a defined falsy value, will report errors when xit or xdescribe are used. Defaults to true
noColorDefaults to false --- If true, disables color output.
basePathDefaults to current working directory --- Used to determine relative path of file. If falsy, uses unmodified path.
tabWidthDefaults to 4 --- Must be a number not less than 2 or greater than 8.

License

MIT License --- See LICENSE for details.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free