API Docs for: 0.3.0
Show:

ReportingOptions Class

Defined in: lib/config.js:185
Module: config

Object that returns reporting options

Constructor

ReportingOptions

(
  • config
)

Defined in lib/config.js:185

Parameters:

  • config Object

    the reporting part of the config object

Item Index

Methods

dir

() String

Defined in lib/config.js:210

returns the directory under which reports should be generated. Used by the cover and report commands.

Returns:

String:

the directory under which reports should be generated.

print

() String

Defined in lib/config.js:196

returns the kind of information to be printed on the console. May be one of summary, detail, both or none. Used by the cover command.

Returns:

String:

the kind of information to print to the console at the end of the cover command execution.

reportConfig

() Object

Defined in lib/config.js:217

returns an object that has keys that are report format names and values that are objects containing detailed configuration for each format. Running istanbul help config will give you all the keys per report format that can be overridden. Used by the cover and report commands.

Returns:

Object:

detailed report configuration per report format.

reports

() Array

Defined in lib/config.js:204

returns a list of reports that should be generated at the end of a run. Used by the cover and report commands.

Returns:

Array:

an array of reports that should be produced

watermarks

() Object

Defined in lib/config.js:251

returns the low and high watermarks to be used to designate whether coverage is low, medium or high. Statements, functions, branches and lines can have independent watermarks. These are respected by all reports that color for low, medium and high coverage. See the default configuration for exact syntax using istanbul help config. Used by the cover and report commands.

Returns:

Object:

an object containing low and high watermarks for statements, branches, functions and lines.