Skip to content

mansuleman/semicov

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Test coverage tool for nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published