我的命令是:
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
同时所有测试全部通过。
我的命令是:
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
同时所有测试全部通过。
13 回答12.8k 阅读
7 回答1.9k 阅读
3 回答1.1k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
6 回答867 阅读✓ 已解决
6 回答1k 阅读
2 回答1.3k 阅读✓ 已解决
如果你的测试用例是使用 ES6 编写的,需要用
babel
来编译的话,尝试这么使用: