tradie-plugin-coverage

2.0.0-preview.4 • Public • Published

tradie-plugin-coverage

Adds code coverage to tradie.

Installation

npm install --save tradie-plugin-coverage

Usage

  1. Configure tradie.config.js:
var coverage = require('tradie-plugin-coverage');

module.exports = {
  plugins: [
    
    coverage({
      thresholds: {
        statements: 90,
        branches: 90,
        functions: 90,
        lines: 90
      },
      reports: ['html']
    })
    
  ]
};
  1. Run tradie test.

To do

  • consider remap-istanbul instead of isparta?

Readme

Keywords

Package Sidebar

Install

npm i tradie-plugin-coverage

Weekly Downloads

0

Version

2.0.0-preview.4

License

none

Last publish

Collaborators

  • jameslnewell