Spec-Zone.ru › QUnit

QUnit.config.reporters

Categories: QUnit.config.

version added: 2.24.0.

Description

Control which reporters to enable or disable.

type Object<string,bool>
default {}

Built-in reporters

  • tap
  • console
  • perf
  • html

Example

Enable TAP in the browser via preconfig:

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

Or, via QUnit.config:

// 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.

© OpenJS Foundation and contributors.
Licensed under the MIT license.
https://qunitjs.com/api/config/reporters

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API