Colortape: Tape/node-tap Test Output Colorizer

0.1.2 · abandoned · verified Sun Apr 19

Colortape is a command-line utility designed to add color to the test output of `tape` and `node-tap` JavaScript testing frameworks. It functions either as a direct wrapper for the test command, executing the test file and formatting its output, or by accepting the raw test output via a pipe. The package is currently at version 0.1.2, which was last published over seven years ago, indicating an abandoned status with no active development or maintenance. Its primary differentiator is its singular focus on colorizing output for these specific testing libraries, providing a simple, albeit unmaintained, solution for visual enhancement of test results without modifying the underlying test runners. Due to its abandonment, users should be aware of potential compatibility issues with newer Node.js versions or `tape`/`node-tap` releases, and the absence of security updates.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to set up `tape` and `colortape`, write a basic test file, and then execute it using `colortape` as the wrapper command to display colorized test output via an npm script or direct CLI execution.

npm install --save-dev tape colortape

// --- test/basic.js ---
const test = require('tape');

test('simple synchronous test', function (t) {
  t.plan(1);
  t.ok(true, 'this assertion should pass');
});

test('another test', function (t) {
  t.plan(2);
  t.equal(1 + 1, 2, 'addition works');
  t.notOk(false, 'negation works');
});

test('failing test example', function (t) {
  t.plan(1);
  t.equal('hello', 'world', 'this assertion should fail');
});
// -------------------

// Add to your package.json scripts:
// "scripts": {
//   "test": "colortape test/basic.js"
// }

// Then run from your terminal:
// npm test

// Alternatively, run directly if installed globally or via npx:
// colortape test/basic.js

view raw JSON →