一個簡單的 angular-cli 命令基礎測試覆蓋

如果你想要檢視整體測試覆蓋率統計資訊,當然在 Angular CLI 中,你只需鍵入以下命令,並檢視命令提示符視窗底部的結果。

ng test --cc // or --code-coverage

StackOverflow 文件