LcovReport Class
a Report
implementation that produces an LCOV coverage file and an associated HTML report from coverage objects.
The name and behavior of this report is designed to ease migration for projects that currently use yuitest_coverage
Usage
var report = require('istanbul').Report.create('lcov');
Constructor
LcovReport
-
opts
Parameters:
-
opts
Objectoptional
-
[dir]
String optionalthe directory in which to the
lcov.info
file. HTML files are written in a subdirectory calledlcov-report
. Defaults toprocess.cwd()
-
Item Index
Methods
Methods
getDefaultConfig
()
Object | Null
returns a config object that has override-able keys settable via config
Returns:
an object representing keys that can be overridden via the istanbul configuration where the values are the defaults used when not specified. A null return implies no config attributes
synopsis
()
String
returns a one-line summary of the report
Returns:
a description of what the report is about
writeReport
-
collector
-
sync
writes the report for a set of coverage objects added to a collector.
Parameters:
-
collector
Collectorthe collector for getting the set of files and coverage
-
sync
Booleantrue if reports must be written synchronously, false if they can be written using asynchronous means (e.g. stream.write)