(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)
8 回复
@alsotang should 是安装到项目目录下面的,mocha是建立在全局环境中的,istanbul是建立在全局环境中的。。执行mocha命令会正确报测试内容 但是全局执行
istanbul cover _mocha 就会报上面的提示的错误
我是按照示例代码来做的