File: README.md

package info (click to toggle)
node-tap-mocha-reporter 3.0.7+ds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 380 kB
  • sloc: makefile: 68; sh: 4
file content (27 lines) | stat: -rw-r--r-- 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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'))
```