とある node.js で動かしていた coverage 生成ツールが動かなくなったので調べた。 blanket.js はすでに開発者不在の状態なので istanbul を使います。 サンプルコード % mkdir practice-istanbul && cd $_ % npm init -f % npm install --save-dev mocha istanbul power-assert % mkdir lib test % touch lib/hello.js test/test_hello.js edit: lib/hello.js % cat lib/hello.js module.exports = function () { return 'hello'; } edit: test/test_hello.js % cat test/test_hello.js var