Skip to content

A simple reporter for tap/tape that makes the body tag yellow/red/green if pending/failing/passing.

Notifications You must be signed in to change notification settings

kirbysayshi/tap-browser-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple reporter for tap/tape that makes the body tag yellow/red/green if pending/failing/passing.

Resources

Stars

Watchers

Forks

Packages

No packages published