Static Member Summary
Static Public Members | ||
public static get |
The currently used package version. |
Static Method Summary
Static Public Methods | ||
public static |
withArgs(args: string[]): ESDocCoverage Creates a new ESDocCoverage instance with the given command line arguments. |
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object, command: string) Creates a new ESDocCoverage instance based on some options and the command to run. |
Member Summary
Public Members | ||
public |
The options the current instance was created with. |
Private Members | ||
private |
The command to run. |
Method Summary
Public Methods | ||
public |
Checks the documentation coverage. |
|
public |
Runs the specified command |
Private Methods | ||
private |
_checkCoverageReport(report: Object): * Validates the documentation coverage reported in the given report matches the threshold specified. |
|
private |
_getCoverageReport(config: Object): Promise<Error, Object> Gets the documentation coverage report for the given config. |
|
private |
_getESDocConfig(paths: string[]): Promise<Error, Object> Searches the given paths for valid ESDoc configurations. |
Static Public Members
Static Public Methods
public static withArgs(args: string[]): ESDocCoverage source
Creates a new ESDocCoverage instance with the given command line arguments.
Params:
Name | Type | Attribute | Description |
args | string[] | The command line arguments to use. |
Test:
Public Constructors
public constructor(options: Object, command: string) source
Creates a new ESDocCoverage instance based on some options and the command to run.
Params:
Name | Type | Attribute | Description |
options | Object |
|
The options to use. |
options.reporter | string |
|
The reporter to use. |
options.config | string |
|
The esdoc config path. |
command | string |
|
The command to run. Note that you have to call ESDocCoverage#run to run the command specified. |
Public Members
Private Members
Public Methods
public run(command: Command): Promise<Error> source
Runs the specified command
Params:
Name | Type | Attribute | Description |
command | Command |
|
The command to run. If not provided it is assumed, that a command was passed to the constructor. |
Test:
Private Methods
private _checkCoverageReport(report: Object): * source
Validates the documentation coverage reported in the given report matches the threshold specified.
Params:
Name | Type | Attribute | Description |
report | Object | The report to handle. |
Return:
* |
private _getCoverageReport(config: Object): Promise<Error, Object> source
Gets the documentation coverage report for the given config.
Params:
Name | Type | Attribute | Description |
config | Object | An ESDoc configuration. |
private _getESDocConfig(paths: string[]): Promise<Error, Object> source
Searches the given paths for valid ESDoc configurations.
Params:
Name | Type | Attribute | Description |
paths | string[] | The paths to search. |