2.0.0-preview.4 • Published 7 years ago

tradie-plugin-coverage v2.0.0-preview.4

Weekly downloads
50
License
-
Repository
github
Last release
7 years ago

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?