Sceat / tap-spec-emoji

Formatted TAP output like Mocha's spec reporter

Repository from Github https://github.comSceat/tap-spec-emojiRepository from Github https://github.comSceat/tap-spec-emoji

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

License:MIT License


Languages

Language:JavaScript 100.0%