Test.TestFormat Class
An object object containing test result formatting methods.
Methods
JSON
(
String
static
-
result
Returns test results formatted as a JSON string. Requires JSON utility.
Parameters:
-
result
ObjectThe results object created by TestRunner.
Returns:
String:
A JSON-formatted string of results.
JUnitXML
(
String
static
-
result
Returns test results formatted in JUnit XML format.
Parameters:
-
result
ObjectThe results object created by TestRunner.
Returns:
String:
An XML-formatted string of results.
TAP
(
String
static
-
result
Returns test results formatted in TAP format. For more information, see Test Anything Protocol.
Parameters:
-
result
ObjectThe results object created by TestRunner.
Returns:
String:
A TAP-formatted string of results.