Test.Console Class
yui3/src/test-console/js/test-console.js:1
Provides a specialized log console widget that's pre-configured to display YUI Test output with no extra configuration.
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:
Generic summary object
_computeBranchTotals
-
fileCoverage
Noramlizes branch data from Istanbul
Parameters:
-
fileCoverage
ObjectJSON coverage data
_computSimpleTotals
-
fileCoverage
-
property
Summarize simple properties in the coverage data
Parameters:
-
fileCoverage
ObjectJSON coverage data
-
property
StringThe property to summarize
_isIstanbul
-
json
Scans the coverage data to determine if it's an Istanbul coverage object.
Parameters:
-
json
ObjectThe coverage data to scan
Returns:
True if this is Istanbul Coverage
_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