tap-nyan

2018-10-14 admin

tap-nyan是什么

什么是tap-nyan,Formatted TAP output like Mocha's spec reporter

tap-nyan使用教程帮助文档

tap-nyan

NYAN TAP output inspired by blatantly copied from Mocha’s nyan reporter with much tap material taken from Scott Corgan’s awesome tap-spec reporter. Very rough at the moment.

screen shot

Colors

The Nyan cat color scheme will automatically be downgraded to ANSI on terminals that doesn’t support 256 colors.

For CLI color options see the supports-color module.

Install

npm install tap-nyan --save-dev

Usage

packge.json

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

Then run with npm test

Terminal

node test/test.js | node_modules/.bin/tnyan

Testling

npm install testling -g
testling test/test.js | node_modules/.bin/tnyan

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

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

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

文章标题:tap-nyan

回到顶部