brndkfr / semicov

Test coverage tool for nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%