包详细信息

am-tap-dot

amokrushin53MIT1.0.1

Human-readable TAP reporter

reporter, tap, tape

自述文件

am-tap-dot

GitHub license

Human-readable dots style TAP reporter

Passed tests

Passed tests

Failed tests

Failed tests

Install

# local
npm i am-tap-dot -D

# global
npm i am-tap-dot -g

Usage

Streaming

const test = require('tape');
const { amTapDot } = require('am-tap-dot');

test.createStream()
    .pipe(amTapDot())
    .pipe(process.stdout);

CLI

package.json

{
  "name": "module-name",
  "scripts": {
    "test": "node ./test/tap-test.js | am-tap-dot"
  }
}

Then run with npm test

Terminal

tape test/index.js | node_modules/.bin/am-tap-dot