JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 441
  • Score
    100M100P100Q97864F
  • License MIT

Run Tape tests in Gulp.

Package Exports

  • gulp-tape

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-tape) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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