API Docs for: 3.8.0
Show:

Test.Console Class

Provides a specialized log console widget that's pre-configured to display YUI Test output with no extra configuration.

Methods

_addDerivedInfoForFile

(
  • fileCoverage
)
private

Calculates line numbers from statement coverage

Parameters:

  • fileCoverage Object

    JSON coverage data

_blankSummary

() Object

Generates a generic summary object used for Istanbul conversions.

Returns:

Object: Generic summary object

_computeBranchTotals

(
  • fileCoverage
)
private

Noramlizes branch data from Istanbul

Parameters:

  • fileCoverage Object

    JSON coverage data

_computSimpleTotals

(
  • fileCoverage
  • property
)
private

Summarize simple properties in the coverage data

Parameters:

  • fileCoverage Object

    JSON coverage data

  • property String

    The property to summarize

_isIstanbul

(
  • json
)
Boolean

Scans the coverage data to determine if it's an Istanbul coverage object.

Parameters:

  • json Object

    The coverage data to scan

Returns:

Boolean: True if this is Istanbul Coverage

_parseCoverage

() private

Parses YUITest or Istanbul coverage results if they are available and logs them.

_percent

(
  • covered
  • total
)
private

Generic percent calculator

Parameters:

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