XUnit

XUnit

new XUnit(runner, optionsopt)

Source:

Constructs a new XUnit reporter instance.

Parameters:
NameTypeAttributesDescription
runnerRunner

Instance triggers reporter actions.

optionsObject<optional>

runner options

Extends

Methods

done(failures, fn)

Source:

Override done to close the stream (if it's a file).

Parameters:
NameTypeDescription
failures
fnfunction

test(test)

Source:

Output tag for the given test.

Parameters:
NameTypeDescription
testTest

write(line)

Source:

Write out the given line.

Parameters:
NameTypeDescription
linestring