HTML

HTML

new HTML(runner, optionsopt)

Source:

Constructs a new HTML reporter instance.

Parameters:
Name Type Attributes Description
runner Runner

Instance triggers reporter actions.

options Object <optional>

runner options

Extends

Members

(inner) duration

Source:

Stat item linking to the duration time (not the word or unit, just the number)

(inner, constant) failuresCount

Source:

Stat item containing the failure count (not the word, just the number)

Source:

Stat item linking to filter to show only failing tests

(inner, constant) failuresStat

Source:

Failures text and count

(inner, constant) passesCount

Source:

Stat item containing the pass count (not the word, just the number)

Source:

Stat item linking to filter to show only passing tests

(inner, constant) passesStat

Source:

Passes text and count

(inner) resultIndicator

Source:

Stat item containing the root suite pass or fail indicator (hasFailures ? '✖' : '✓')

Methods

addCodeToggle(el, contents)

Source:

Adds code toggle functionality for the provided test's list element.

Parameters:
Name Type Description
el HTMLLIElement
contents string

suiteURL(suiteopt)

Source:

Provide suite URL.

Parameters:
Name Type Attributes Description
suite Object <optional>

testURL(testopt)

Source:

Provide test URL.

Parameters:
Name Type Attributes Description
test Object <optional>