Skip to content

Formatted TAP output like Mocha's spec reporter

License

Notifications You must be signed in to change notification settings

Sceat/tap-spec-emoji

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from tap-spec

tap-spec (Emoji patch) NPM version NPM download count

Formatted TAP output like Mocha's spec reporter

Patch Motivation

Using a terminal with emoji support, the tests output become pretty ugly. This package use different emojis instead. You may still use the original lib for your CI in case it doesn't support emojis (because it support char fallbacks), but on your local computer this version allow for a better output

Install

npm install tap-spec-emoji --save-dev

Usage

Streaming

var test = require('tape');
var tapSpec = require('tap-spec-emoji');

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

CLI

package.json

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

Then run with npm test

Terminal

tape test/index.js | node_modules/.bin/tap-spec-emoji

Testling

npm install testling -g
testling test/index.js | node_modules/.bin/tap-spec-emoji

About

Formatted TAP output like Mocha's spec reporter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%