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 + + + + + +
- + _blankSummary + + + + + +
- + _computeBranchTotals + + + + + +
- + _computSimpleTotals + + + + + +
- + _isIstanbul + + + + + +
- + _parseCoverage + + + + + +
- + _percent + + + + + +
- + parseInstanbul + + + + + +
- + parseYUITest + + + + + +
Methods
+ + +_addDerivedInfoForFile
+
+
+ -
+
+
-
+
+
fileCoverage+ +
+
+
Calculates line numbers from statement coverage
+Parameters:
+ +-
+
+
-
+
+
fileCoverage+ Object + + + + +++ + +JSON coverage data
+
+
+
_blankSummary
+
+
+ ()
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Generates a generic summary object used for Istanbul conversions.
+Returns:
+ +_computeBranchTotals
+
+
+ -
+
+
-
+
+
fileCoverage+ +
+
+
Noramlizes branch data from Istanbul
+Parameters:
+ +-
+
+
-
+
+
fileCoverage+ Object + + + + +++ + +JSON 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+ Object + + + + +++ + +The 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+ Object + + + + +++ + +The coverage object to normalize and log
+
+
+
parseYUITest
+
+
+ -
+
+
-
+
+
coverage+ +
+
+
Parses and logs a summary of YUITest coverage data.
+Parameters:
+ +-
+
+
-
+
+
coverage+ Object + + + + +++ + +The YUITest Coverage JSON data
+
+
+
