https://github.com/scottcorgan/tap-spec
Formatted TAP output like Mocha's spec reporter
https://github.com/scottcorgan/tap-spec
tap tap-spec tape testing
Last synced: about 1 month ago
JSON representation
Formatted TAP output like Mocha's spec reporter
- Host: GitHub
- URL: https://github.com/scottcorgan/tap-spec
- Owner: scottcorgan
- License: mit
- Created: 2014-01-02T18:18:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-06-01T02:03:33.000Z (12 months ago)
- Last Synced: 2025-03-31T21:51:19.397Z (about 1 month ago)
- Topics: tap, tap-spec, tape, testing
- Language: JavaScript
- Size: 75.2 KB
- Stars: 283
- Watchers: 6
- Forks: 37
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tap - tap-spec - Mocha-like spec reporter. (Reporters / JavaScript)
README
# tap-spec [](https://www.npmjs.com/package/tap-spec) [](https://www.npmjs.com/package/tap-spec)
Formatted TAP output like Mocha's spec reporter

## Install
```
npm install tap-spec --save-dev
```## Usage
### Streaming
```js
var test = require('tape');
var tapSpec = require('tap-spec');test.createStream()
.pipe(tapSpec())
.pipe(process.stdout);
```### CLI
**package.json**
```json
{
"name": "module-name",
"scripts": {
"test": "node ./test/tap-test.js | tap-spec"
}
}
```Then run with `npm test`
**Terminal**
```
tape test/index.js | node_modules/.bin/tap-spec
```**Testling**
```
npm install testling -g
testling test/index.js | node_modules/.bin/tap-spec
```