为了账号安全,请及时绑定邮箱和手机立即绑定

istanbul: No coverage information was collected

istanbul: No coverage information was collected

炎炎设计 2018-09-14 09:13:28
我的命令是: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 ...


查看完整回答
反对 回复 2018-10-03
  • 1 回答
  • 0 关注
  • 1023 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号