colortape

Colorize test results of tape/node-tap.

Usage no npm install needed!

<script type="module">
  import colortape from 'https://cdn.skypack.dev/colortape';
</script>

README

colortape

Colorize test results of tape/node-tap.

Travis build status NPM version NPM downloads

Installation

npm install -g colortape

To use with npm test, install locally.

npm install -save-dev colortape

Usage

Wrapper command (recommended)

Use colortape command instead of tape command.

colortape test/foo.js

This usage is recommended because it exits with the same exit code as tape command.

Pipe

Pipe the result of tape command.

tape test/foo.js | colortape

With this usage, don't use the exit code of colortape command. Use $PIPESTATUS instead.

Windows

colortape is not officially supported on Windows because I don't have any Windows box. Here is the CI status on AppVeyor though.

AppVeyor build status