Test coverage tool for nodejs
Switch branches/tags
Nothing to show
Pull request Compare This branch is 15 commits behind 1602:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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.