Test.TestFormat Class
yui3/src/test/js/TestFormat.js:1
An object object containing test result formatting methods.
Methods
JSON
-
result
Returns test results formatted as a JSON string. Requires JSON utility.
Parameters:
-
result
ObjectThe results object created by TestRunner.
Returns:
A JSON-formatted string of results.
JUnitXML
-
result
Returns test results formatted in JUnit XML format.
Parameters:
-
result
ObjectThe results object created by TestRunner.
Returns:
An XML-formatted string of results.
TAP
-
result
Returns test results formatted in TAP format. For more information, see <a href="http://testanything.org/">Test Anything Protocol</a>.
Parameters:
-
result
ObjectThe results object created by TestRunner.
Returns:
A TAP-formatted string of results.
XML
-
result
Returns test results formatted as an XML string.
Parameters:
-
result
ObjectThe results object created by TestRunner.
Returns:
An XML-formatted string of results.