Skip to content

cenfun/node-monocart-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Monocart Coverage

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 tests

Config file for Coverage Options

  • mcr.config.js
  • mcr.config.cjs
  • mcr.config.mjs
  • mcr.config.json
  • mcr.config.ts

See config example mcr.config.js

// mcr.config.js
export default {
    // logging: 'debug',
    name: 'My Note Coverage Report',

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

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

See monocart-coverage-reports for more coverage options.

Changelog

About

Monocart coverage reports for node test runner

Resources

License

Stars

Watchers

Forks

Packages

No packages published