API Docs for: 3.8.0
Show:

Test.TestFormat Class

Module: test

An object object containing test result formatting methods.

Item 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 Test Anything Protocol.

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.