tap-browser-color

0.1.2 • Public • Published

tap-browser-color

A super simple tap/tape reporter that changes the body tag background color depending on if the tests are passing, failing, or pending.

Live example!

Animation of requirebin example

This is meant for live-coding or environments where you want a big swath of color when your test status changes.

Usage

Best used with requirebin.

// Executing immediately intercepts (and still passes) console.log output
var undo = require('tap-browser-color')();
var tape = require('tape');
 
test('yep', function(t) {
  t.ok('whatup');
  t.end();
});
 
// Entirely optional, this just removes the `console.log` intercept.
// Probably pretty useless.
undo();

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    200
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    200
  • 0.1.1
    7
  • 0.1.0
    7

Package Sidebar

Install

npm i tap-browser-color

Weekly Downloads

89

Version

0.1.2

License

MIT

Last publish

Collaborators

  • kirbysayshi