84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我的命令是:
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
如果你的测试用例是使用 ES6 编写的,需要用 babel 来编译的话,尝试这么使用:
babel
node_modules/.bin/babel-node node_modules/.bin/istanbul cover ...
如果你的测试用例是使用 ES6 编写的,需要用
babel
来编译的话,尝试这么使用: