javascript - istanbul: No coverage information was collected
ringa_lee
ringa_lee 2017-04-11 12:26:05
0
1
396

我的命令是:

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

同时所有测试全部通过。

ringa_lee
ringa_lee

ringa_lee

全部回覆(1)
PHPzhong

如果你的测试用例是使用 ES6 编写的,需要用 babel 来编译的话,尝试这么使用:

node_modules/.bin/babel-node node_modules/.bin/istanbul cover ...
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!