'use strict';
var gulp = require('gulp');
var tape = require('gulp-tape');
var tapColorize = require('tap-colorize');
gulp.task('test', function() {
return gulp.src('test/*.js')
.pipe(tape({
reporter: tapColorize()
}));
});
var tape = require('gulp-tape');
opts
is an object literal that can take the following keys:
-
bail
— Whether to stop the Gulp process on the first failing assertion. Defaults tofalse
. -
outputStream
— The stream to pipe the test output. Defaults toprocess.stdout
. -
reporter
— The reporter (a readable/writable stream, as intap-colorize
) to format the TAP output. The output is simply not formatted if this isn’t specified. -
tapeOpts
— The options passed totape.createStream
.
Install via npm (together with Tape):
$ npm install --save-dev gulp-tape tape