Skip to content

alansouzati/gulp-tape

 
 

Repository files navigation

gulp-tape npm Version Build Status

Run Tape tests in Gulp.

Usage

'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()
    }));
});

API

var tape = require('gulp-tape');

tape([opts])

opts is an object literal that can take the following keys:

  • bail — Whether to stop the Gulp process on the first failing assertion. Defaults to false.

  • outputStream — The stream to pipe the test output. Defaults to process.stdout.

  • reporter — The reporter (a readable/writable stream, as in tap-colorize) to format the TAP output. The output is simply not formatted if this isn’t specified.

  • tapeOpts — The options passed to tape.createStream.

Installation

Install via npm (together with Tape):

$ npm install --save-dev gulp-tape tape

License

MIT

About

Run Tape tests in Gulp.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%