Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuanqing/gulp-tape
:ghost: Run Tape tests in Gulp.
https://github.com/yuanqing/gulp-tape
gulp nodejs tape
Last synced: 17 days ago
JSON representation
:ghost: Run Tape tests in Gulp.
- Host: GitHub
- URL: https://github.com/yuanqing/gulp-tape
- Owner: yuanqing
- License: mit
- Created: 2015-07-05T13:51:43.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2021-01-30T07:40:36.000Z (about 4 years ago)
- Last Synced: 2025-01-17T23:40:25.468Z (22 days ago)
- Topics: gulp, nodejs, tape
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 14
- Watchers: 3
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gulp-tape [![npm Version](http://img.shields.io/npm/v/gulp-tape.svg?style=flat)](https://www.npmjs.org/package/gulp-tape) [![Build Status](https://img.shields.io/travis/yuanqing/gulp-tape.svg?style=flat)](https://travis-ci.org/yuanqing/gulp-tape)
> Run [Tape](https://github.com/substack/tape) tests in [Gulp](http://gulpjs.com/).
## Usage
```js
const gulp = require('gulp')
const tape = require('gulp-tape')gulp.task('test', function () {
return gulp.src('test/*.js')
.pipe(tape({
bail: true
}))
})
```## API
```js
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`](https://github.com/istanbuljs/nyc). (Specify `nyc` options in your `package.json`.) | `false`
`outputStream` | The stream to [pipe the test output](https://github.com/substack/tape#tap-stream-reporter). | `process.stdout`
`require` | [Modules to load](https://github.com/substack/tape#preloading-modules) before running the tests. | `[]`## Installation
Install via [yarn](https://yarnpkg.com):
```sh
$ yarn add --dev gulp-tape
```Or [npm](https://npmjs.com):
```sh
$ npm install --save-dev gulp-tape
```## License
[MIT](LICENSE.md)