【发布时间】:2015-01-03 11:35:47
【问题描述】:
在我的代码中我有var es = require('event-stream');
在我的 package.json 中,我有
"scripts": {
"test": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec",
}
我只想覆盖我的主文件,但它也覆盖了事件流的文件,所以我得到了类似的东西
=============================== Coverage summary ===============================
Statements : 24.74% ( 757/3060 )
Branches : 5.42% ( 88/1625 )
Functions : 15.56% ( 70/450 )
Lines : 25.37% ( 735/2897 )
================================================================================
有没有办法只覆盖我自己的代码?
【问题讨论】:
标签: javascript node.js command-line mocha.js istanbul