JSPM

yuitest-coverage

0.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27933
  • Score
    100M100P100Q190986F

Node.js wrapper for yuitest-coverage java package

Package Exports

  • yuitest-coverage
  • yuitest-coverage/jar/yuitest-coverage-report.jar
  • yuitest-coverage/jar/yuitest-coverage.jar

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (yuitest-coverage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

YUI Test Coverage Node.js Module

This module is a wrapper around the YUITest Coverage Java module that you can call from a Node.js process.

Example

var coverage = require('yuitest-coverage');

coverage.cover('<file string to cover>', {
    charset: 'utf8',
    name: 'A name for the file in the output'
},
function(err, data) {
    //err will be populated with the stderr from the java process
    //data will be a string of the covered contents, you write the file out
});

coverage.cover('</path/to/file>', callback); // also works