tap-dancer

2019-05-15 admin

tap-dancer是什么

什么是tap-dancer,a quick human-readable test-reporter for Tap

tap-dancer使用教程帮助文档

like tap-dot, but with more information about failures, and where to find them.

based on am-tap-dot by amokrushin. (Thanks!)

image


image

# local
npm i tap-dancer --save-dev

# global
npm i tap-dancer -g

API

const test = require('tape')
const TapDance = require('tap-dancer')

test
  .createStream()
  .pipe(new TapDance())
  .pipe(process.stdout)

Command-line

tape test/index.js | node_modules/.bin/tap-dancer --color

or in package.json,

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

Then run with npm test

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-65031.html

文章标题:tap-dancer

回到顶部