Test Anything JS

A Test-Anything-Protocol library for Node.js

npm install tap
tap test/*.js

Reporting

Tests can be reported in a variety of different ways.

When you run a test script directly, it’ll always output TAP. The tap runner will interpret this output, and can format it in a variety of different ways.

These are done programmatically using the tap-mocha-reporter module, which ports many of the report styles built into mocha.

You can specify a reporter using the --reporter or -R argument. The following options are available: