npm test --codecoverage 不生成报告 [英] npm test --codecoverage doesn't generate report
本文介绍了npm test --codecoverage 不生成报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
不知道为什么当我点击
npm test --codecoverage
正在执行所有测试,但是我看到一个空的/coverage"文件夹,没有任何报告.我使用 angular-cli
All test is being executed, however I see an empty '/coverage' folder with no single report. I use angular-cli
我做错了什么?
推荐答案
如果你全局安装了 CLI,命令是
If you have the CLI installed globally, The command is
ng test --code-coverage
如果你想使用 npm 脚本
,你需要做
If you want to use the npm scripts
, you will need to do
npm test -- --code-coverage
这篇关于npm test --codecoverage 不生成报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文