Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Test coverage tool for nodejs
branch: master

This branch is 12 commits behind 1602:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets
README.md
index.js
package.json

README.md

Test coverage tool. It generates html report like that

Installation

npm install semicov

It works only...

...only if your code has semicolons. And it will break badly-written javascript:

if (condition) doSomething();
else doSomethingElse();

So, basically it should work very well for any code passed following jslint validations:

Usage

Put following line before very first line of your code

var semicov = require('semicov');
semicov.init('lib', 'My Awesome Lib Name'); // First argument 'lib' is name of dir with code
process.on('exit', semicov.report);

And it will generate ./coverage/index.html for you.

Something went wrong with that request. Please try again.