QUnit.reporters

To create your own reporter, refer to the QUnit.on() event emitter and its Reporter API.

QUnit.reporters.console

The console reporter logs a JSON object from all QUnit.on() reporting events.

runStart {…}
testStart {…}
testEnd {…}
testStart {…}
testEnd {…}
runEnd {…}

QUnit.reporters.html

The HTML Reporter provides a toolbar, renders test results, diffs, and more.

QUnit.reporters.perf

Find slow tests and visualize them in browser DevTools.

QUnit profiling in Chrome DevTools Performance tab

QUnit.reporters.tap

The tap reporter is default in the QUnit CLI and enables pairing QUnit with an ecosystem of TAP-based reporters and other tools.

TAP version 13
ok 1 add > two numbers
1..1
# pass 1
# skip 0
# todo 0
# fail 0