我正在尝试获取正在测试的文件的覆盖率报告,但我失败了。使用这两个命令,我得到了一个巨大的JSON文件。
coverage包也有一个格式化程序。所以我打电话给pub global run coverage:format_coverage -i coverage.json。我得到了一个很好的格式化输出,但输出的文件是错误的。我知道coverage:format_coverage命令有一
/node_modules/.bin/istanbul cover ./node_modules/.bin/lab -- -l -e development -r lcov dist/test...information was collected, exit without writing coverage information
为什么这告诉我没有收集任何覆盖范围?摆脱-r lcov并没有真正