Functions

f
browserLog(
config: Config,
log: BrowserLog
): void

Emits one console.* call or uncaught error from the page under test. Rendered verbatim — no # prefix — because it is the page's output, not qunitx's, and prefixing it would corrupt whatever the page was deliberately printing.

f
create(config: Config): Reporter[]

Reporter wiring. config.reporter selects exactly one stdout reporter; artifact reporters (JUnit) are additive and stack on top. Built once per run in Config.setup and shared by every concurrent group — the group configs are spread off the parent config, so they all reference this same array (the same way the run counter is shared).

f
error(
config: Config,
message: string,
options?: NoticeOptions
): void

A diagnostic that also belongs on stderr — a stack trace, a timeout, a page that crashed.

f
info(
config: Config,
message: string,
options?: NoticeOptions
): void

A decision the runner made and wants on the record — what it chose to run, what it skipped.

f
runEnd(
config: Config,
info: RunEndInfo
): Promise<void>

Emits run end to every active reporter, awaiting any that flush asynchronously.

f
runStart(
config: Config,
info: RunStartInfo
): void

Emits run start to every active reporter. In watch mode this fires once per rerun.

f
testEnd(
config: Config,
details: TestDetails
): void

Applies one testEnd to the counters, then fans it out to every active reporter. The counter update happens here — exactly once, before any reporter runs — so counts stay correct regardless of how many reporters are attached.

f
warning(
config: Config,
message: string,
options?: NoticeOptions
): void

Something surprising that did not stop the run — a filter that matched nothing, a flag that does not apply to the chosen browser.

Interfaces

I
NoticeOptions

Options a diagnostic can carry beyond its text. Both default to the CLI's long-standing behaviour, so only the handful of call sites that need something else say so.

  • raw: boolean

    Write the message verbatim rather than as a # -prefixed TAP comment. For pre-formatted blocks — the coverage table, a stack trace — whose own layout is the point.

  • stream: "output" | "error" | "both"

    Which of the run's two streams the default rendering goes to. output by default.

Variables

v
BUILT_IN_REPORTERS: Record<ReporterName, new () => Reporter>

The --reporter value -> its class. Keyed by ReporterName, so adding a name to REPORTERS without wiring it up here is a type error rather than a silent fall back to tap.