Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

benderjs-coverage

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

benderjs-coverage

Code coverage plugin for Bender.js

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

benderjs-coverage

Code coverage plugin for Bender.js.

Generates code coverage reports using Istanbul.

Works in bender run mode and for bender jobs.

Links to the detailed coverage reports are available on the job's page after it's completed.

Install

npm install benderjs-coverage

Usage

Add benderjs-coverage to the plugins array in your bender.js configuration file:

var config = {
    applications: {...}

    browsers: [...],

    plugins: ['benderjs-jasmine', 'benderjs-coverage'], // load the plugin

    tests: {...}
};

module.exports = config;

Add the coverage plugin configuration:

var config = {
    applications: {...},

    // add your plugin configuration
    coverage: {
        paths: [
            'lib/**/*.js'
        ]
    },

    browsers: [...],

    plugins: ['benderjs-jasmine', 'benderjs-coverage'], // load the plugin

    tests: {...}
};

module.exports = config;

Configuration options

paths

(Required)

An array of file path matchers used to mark which files should be preprocessed by this plugin. It uses globstar matching using minimatch.

outputDirectory

(Optional)

Default: coverage/

A path to the directory where the coverage reports for bender run command will be put.

type

(Optional)

Default: html

A type of the coverage report. Check Istanbul website for available values.

options

(Optional)

Configuration options for the Istanbul Instrumenter. Check Istanbul website for more information.

License

MIT, for license details see: LICENSE.md.

Keywords

FAQs

Package last updated on 06 Feb 2019

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc