Generate TAP output
npm install supertap

> Generate TAP output
```
$ npm install supertap
`js
import * as supertap from 'supertap';
console.log(supertap.start());
console.log(supertap.test('passing', {
index: 1,
passed: true
}));
console.log(supertap.finish({
passed: 1
}));
`
Output:
`
TAP version 13passing
ok 1 - passing
1..1
API
$3
Always returns
'TAP version 13' string.$3
#### title
Type:
stringTest title.
#### options
##### index
Type:
numberIndex of the test. Should start with one, not zero.
##### passed
Type:
boolean
Default: falseStatus of the test.
##### error
Type:
Error objectIf test has failed (
passed is false), error should be an instance of an actual error.
It can also be an object, which fields will be included in the output (e.g. name, message, actual, expected).`js
supertest.test('failing', {
index: 1,
passed: false,
error: new Error()
});
`##### todo
##### skip
Type:
boolean
Default: falseMark test as to-do or as skipped.
##### comment
Type:
string arrayComments for that test.
$3
#### stats
##### passed
##### failed
##### skipped
##### todo
##### crashed
Type:
number
Default: 0Number of tests that passed, failed, skipped or marked as todo.
crashed` is a special option, which adds to failed test count in the output, but not total test count. AVA uses it to count unhandled exceptions.