Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 910e3c0324

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
jar
lib
Makefile
README.md
package.json

README.md

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('/path/to/file', {
    charset: 'utf8',
    name: 'A name for the file'
},
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('<string from a file>', callback); // also works
Something went wrong with that request. Please try again.