覆盖报告器
【Coverage reporters】
tap 和 spec 报告器将打印覆盖率统计摘要。还有一个 lcov 报告器,它将生成一个 lcov 文件,可用于作为详细的覆盖率报告。
【The tap and spec reporters will print a summary of the coverage statistics. There is also an lcov reporter that will generate an lcov file which can be used as an in depth coverage report.】
node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info - 该报告员未报告任何测试结果。
- 这个报告器最好与另一个报告器一起使用。