Test.Console Class
Provides a specialized log console widget that's pre-configured to display YUI Test output with no extra configuration.
Item Index
Methods
_addDerivedInfoForFile
-
fileCoverage
Calculates line numbers from statement coverage
Parameters:
-
fileCoverage
ObjectJSON coverage data
_blankSummary
()
Object
Generates a generic summary object used for Istanbul conversions.
Returns:
_computeBranchTotals
-
fileCoverage
Noramlizes branch data from Istanbul
Parameters:
-
fileCoverage
ObjectJSON coverage data
_computSimpleTotals
-
fileCoverage
-
property
Summarize simple properties in the coverage data
_isIstanbul
-
json
Scans the coverage data to determine if it's an Istanbul coverage object.
Parameters:
-
json
ObjectThe coverage data to scan
Returns:
_parseCoverage
()
private
Parses YUITest or Istanbul coverage results if they are available and logs them.
_percent
-
covered
-
total
Generic percent calculator
parseInstanbul
-
coverage
Takes an Istanbul coverage object, normalizes it and prints a log with a summary
Parameters:
-
coverage
ObjectThe coverage object to normalize and log
parseYUITest
-
coverage
Parses and logs a summary of YUITest coverage data.
Parameters:
-
coverage
ObjectThe YUITest Coverage JSON data