Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tapjs/tap-mocha-reporter
Format a TAP stream using Mocha's set of reporters
https://github.com/tapjs/tap-mocha-reporter
Last synced: 3 months ago
JSON representation
Format a TAP stream using Mocha's set of reporters
- Host: GitHub
- URL: https://github.com/tapjs/tap-mocha-reporter
- Owner: tapjs
- License: other
- Created: 2015-04-25T20:42:41.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-12-22T18:17:27.000Z (11 months ago)
- Last Synced: 2024-07-29T00:55:57.141Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 407 KB
- Stars: 28
- Watchers: 5
- Forks: 32
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tap - tap-mocha-reporter - Use any of the [Mocha reporters](https://github.com/isaacs/tap-mocha-reporter/tree/master/lib/reporters). (Reporters / JavaScript)
README
# tap-mocha-reporter
Format a TAP stream using Mocha's set of reporters
## USAGE
On the command line, pipe TAP in, and it'll do its thing.
```bash
tap test/*.js | tap-mocha-reporter
```You can also specify a reporter with the first argument. The default
is `spec`.```bash
tap test/*.js | tap-mocha-reporter nyan
```Programmatically, you can use this as a transform stream.
```javascript
var TSR = require('tap-mocha-reporter')fs.createReadStream('saved-test-output.tap')
.pipe(TSR('dot'))
```