Skip to content

ls-age/esdoc-plugin-require-coverage

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

esdoc-plugin-require-coverage

ESDoc plugin to test coverage. Useful in combination with a CI service.

CircleCI codecov ESDoc

Installation

Add the module to your development dependencies as usual by running:

npm install --save-dev esdoc-plugin-require-coverage

After that you can configure ESDoc to use this plugin by adding an entry inside your esdoc.json:

{
  "source": "./src",
  "destination": "./doc",
  "plugins": [
    {
      "name": "esdoc-plugin-require-coverage"
    }
  ]
}

Usage

With the plugin installed and added to esdoc.json just run ESDoc as usual:

esdoc -c esdoc.json

The only difference you'll experience is that ESDoc will throw an error if the required coverage is not met.

Setting the required coverage

The required coverage defaults to 90%. You can change that by passing an option to the plugin inside esdoc.json:

{
  ...
  "plugins": [
    {
      "name": "esdoc-plugin-require-coverage",
      "option": {
        "required": 80
      }
    }
  ]
}

In the above example, a coverage of 80% would be tested.

About

ESDoc plugin to test coverage. Useful in combination with a CI service.

Resources

Stars

Watchers

Forks

Packages

No packages published