Show:

An object object containing test result formatting methods.

Index

Methods

Methods

JSON

(
  • result
)
String static

Returns test results formatted as a JSON string. Requires JSON utility.

Parameters:

  • result Object

    The results object created by TestRunner.

Returns:

String:

A JSON-formatted string of results.

JUnitXML

(
  • result
)
String static

Returns test results formatted in JUnit XML format.

Parameters:

  • result Object

    The results object created by TestRunner.

Returns:

String:

An XML-formatted string of results.

TAP

(
  • result
)
String static

Returns test results formatted in TAP format. For more information, see <a href="http://testanything.org/">Test Anything Protocol</a>.

Parameters:

  • result Object

    The results object created by TestRunner.

Returns:

String:

A TAP-formatted string of results.

XML

(
  • result
)
String static

Returns test results formatted as an XML string.

Parameters:

  • result Object

    The results object created by TestRunner.

Returns:

String:

An XML-formatted string of results.