1.0.2 • Published 8 months ago

node-monocart-coverage v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Node Monocart Coverage

npm.io npm.io npm.io

Generating native V8 coverage reports for Node test runner with Monocart coverage reports

Install

npm i node-monocart-coverage -D

Usage

node --test-reporter=node-monocart-coverage --test

The node-monocart-coverage reporter extends default spec reporter

Config file for Coverage Options

  • mcr.config.js
  • mcr.config.cjs
  • mcr.config.mjs
  • mcr.config.json
  • mcr.config.ts
// mcr.config.js
export default {
    // logging: 'debug',
    name: 'My Note Coverage Report',

    reports: [
        'console-details',
        'v8',
        'v8-json',
        'codecov'
    ],

    entryFilter: {
        '**/src/**': true
    },

    onEnd: (results) => {
        console.log(`coverage report generated: ${results.reportPath}`);
    }
};

See config example mcr.config.js See monocart-coverage-reports for more coverage options.

Changelog

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

10 months ago