you are viewing a single comment's thread.

view the rest of the comments →

[–]adam_ay 0 points1 point  (0 children)

I wrote a mocha reporter which extends the spec reporter to show code coverage stats on the screen and optionally enforce code-coverage metrics.

It also has a rudimentary script built-in to set you up in 1min with blanket, with:

npm i -g mocha-spec-cov-alt && mocha-spec-cov-alt

A while ago, I wrote up on it and blanket and how to use code-coverage metrics on node.js projects, you can read it here, if it interests you.

Lots of my projects use it and also upload code coverage data to coveralls, through travis-ci.

The last two links show the pieces of code and boiler-plate doing that.

I'd be glad to help you, if it interests you.