我的命令是:istanbul cover node_modules/mocha/bin/_mocha -- --compilers js:babel-core/register --colors --reporter dot test/为什么会出现这个问题呢?No coverage information was collected, exit without writing coverage information同时所有测试全部通过
1 回答

一只甜甜圈
TA贡献1836条经验 获得超5个赞
如果你的测试用例是使用 ES6 编写的,需要用 babel
来编译的话,尝试这么使用:
node_modules/.bin/babel-node node_modules/.bin/istanbul cover ...
添加回答
举报
0/150
提交
取消