c
TAPReporter
The default reporter: streams TAP version 13 to stdout. Stateless — every number it
prints comes from context.counts, which the dispatcher updates before onTestEnd.
-
onRunEnd(): voidcontext: ReporterContext,info: RunEndInfo
Emits the TAP plan line and the run summary.
-
onRunStart(): voidcontext: ReporterContext,info: RunStartInfo
Emits the TAP version header, plus the run banner as a
#comment. -
onTestEnd(): voidcontext: ReporterContext,details: TestDetails
Emits the
ok/not okline, with a YAML block for each failing assertion.
Usage
import * as mod from "lib/reporters/tap.ts";