Back to Qunit

QUnit.config.reporters

docs/api/config/reporters.md

2.25.0940 B
Original Source

Control which reporters to enable or disable.

<table> <tr> <th>type</th> <td markdown="span">`Object<string,bool>`</td> </tr> <tr> <th>default</th> <td markdown="span">`{}`</td> </tr> </table>

Built-in reporters

Example

Enable TAP in the browser via preconfig:

js
// Set as global variable before loading qunit.js
qunit_config_reporters_tap = true;

Or, via QUnit.config:

js
// Set from any inline script or JS file after qunit.js
QUnit.config.reporters.tap = true;

Changelog

| UNRELEASED | And support for QUnit.config.reporters.perf and QUnit.config.reporters.html. | QUnit 2.24.0 | Introduce QUnit.config.reporters, limited to tap and console.