Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-tape

yuanqing2.1kMIT1.0.0

Run Tape tests in Gulp.

gulpplugin, tape, test

readme

gulp-tape npm Version Build Status

Run Tape tests in Gulp.

Usage

const gulp = require('gulp')
const tape = require('gulp-tape')

gulp.task('test', function () {
  return gulp.src('test/*.js')
    .pipe(tape({
      bail: true
    }))
})

API

const tape = require('gulp-tape')

tape([options])

options is an optional object literal.

Key Description Default
bail Whether to stop the Gulp process on the first failing assertion. false
nyc Whether to compute test coverage using nyc. (Specify nyc options in your package.json.) false
outputStream The stream to pipe the test output. process.stdout
require Modules to load before running the tests. []

Installation

Install via yarn:

$ yarn add --dev gulp-tape

Or npm:

$ npm install --save-dev gulp-tape

License

MIT

changelog

Changelog

1.0.0

  • Add support for test coverage via nyc

0.0.11

  • Change how we resolve the path to the tape binary, to support Windows

0.0.10

  • Change approach to run tests in a child process, leveraging the tape module CLI

0.0.8

  • Allow opts.bail to allow exiting the Gulp process if some assertion failed

0.0.3

  • Allow formatting the TAP output via opts.reporter

0.0.1

  • Initial release