• 欢迎访问少将全栈,学会感恩,乐于付出,珍惜缘份,成就彼此、推荐使用最新版火狐浏览器和Chrome浏览器访问本网站。
  • 吐槽,投稿,删稿,交个朋友,商务沟通v:ai_draw
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏少将全栈吧

istanbul 不能输出测试覆盖率

点滴 admin 8年前 (2016-11-04) 2510次浏览 已收录 1个评论 扫描二维码

(function (exports, require, module, __filename, __dirname) { @IF EXIST "%~dp0
^
No coverage information was collected, exit without writing coverage information
No coverage information was collected, exit without writing coverage
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Module._extensions…js (module.js:474:10)

在windows下面istanbul 找不到 * _mocha* https://github.com/gotwarlost/istanbul/issues/90 正确姿势

istanbul cover {your_npm_path}/npm/node_modules/mocha/bin/_mocha

来自:https://cnodejs.org/topic/54cddc2bef1b48510c27e07e

喜欢 (0)
[🍬谢谢你请我吃糖果🍬🍬~]
分享 (0)
关于作者:
少将,关注Web全栈开发、项目管理,持续不断的学习、努力成为一个更棒的开发,做最好的自己,让世界因你不同。
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(1)个小伙伴在吐槽
  1. 有默认的缩略图、
    故事、自己写2016-11-09 21:43 回复 未知操作系统 | 未知浏览器