yuitest-coverage

Node.js wrapper for yuitest-coverage java package

npm install yuitest-coverage
855 downloads in the last day
3 842 downloads in the last week
8 301 downloads in the last month

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
npm loves you