Socket
Book a DemoInstallSign in
Socket

esdoc-plugin-require-coverage

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esdoc-plugin-require-coverage

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

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
7
-12.5%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

esdoc-plugin

FAQs

Package last updated on 14 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.