ESDocCoverage
|
ESDocCoverage |
.version
|
ESDocCoverage.version |
should return current package version
|
- |
.withArgs
|
ESDocCoverage.withArgs |
should return a set up instance
|
- |
#constructor
|
ESDocCoverage#constructor |
should work without any arguments
|
- |
should store options passed
|
- |
should store command passed
|
- |
#_getESDocConfig
|
ESDocCoverage#_getESDocConfig |
should fail with invalid path
|
- |
should use esdoc property on package.json files
|
- |
should be fulfilled if config exists
|
- |
#_getCoverageReport
|
ESDocCoverage#_getCoverageReport |
should fail with invalid path
|
- |
should work with valid path
|
- |
#_checkCoverageReport
|
ESDocCoverage#_checkCoverageReport |
should return xml report if reporter is set to unit
|
- |
#checkCoverage
|
ESDocCoverage#checkCoverage |
should call getConfig with passed option value
|
- |
should call getConfig with default config paths if no option passed
|
- |
#run
|
ESDocCoverage#run |
should fail without command
|
- |
should fail with invalid command
|
- |
should always run passed command if defined
|
- |
should call checkCoverage for CheckCoverage command
|
- |
CliReporter
|
CliReporter |
#constructor
|
CliReporter#constructor |
should initialize a cli-table Table
|
- |
#addRow
|
CliReporter#addRow |
should call cli-table~Table#push
|
- |
#report
|
CliReporter#report |
should forward args to addRow
|
- |
#finish
|
CliReporter#finish |
should add a summary row
|
- |
should set process exit code
|
- |
JUnitReporter
|
JUnitReporter |
#constructor
|
JUnitReporter#constructor |
should initialize results
|
- |
#report
|
JUnitReporter#report |
should add a testcase
|
- |
should add failure if threshold is not met
|
- |
#finish
|
JUnitReporter#finish |
should resolve with a XML string
|
- |
Reporter
|
Reporter |
#constructor
|
Reporter#constructor |
should set initial values
|
- |
#report
|
Reporter#report |
should increase values
|
- |
should should keep previous success value if successful
|
- |
#finish
|
Reporter#finish |
should return a fulfilled Promise by default
|
- |