angular / angular/angular-cli

Add a coverage reporters option to ng test and angular json test options

オープン
#27,869 コメント 3 件 リアクション 6 件 担当者 0 名 GitHub で見る
area: @angular-devkit/build-angular devkit/build-angular:karma feature feature: insufficient votes
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
162

説明

### Command

test

### Description

It would be nice to be able to specify coverageReporters similar to reporters for ng test

### Describe the solution you'd like

ng test --code-coverage --coverage-reporters lcov

### Describe alternatives you've considered

I could just add a karma conf and configure the coverage reports there, but I can configure excludes for code coverage, why not the reporter?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

ng test コマンドと angular.json のテストオプションから始め、既存の reporters オプションと要求されている coverageReporters の動作を比較します。--code-coverage と Karma の設定が現在どのようにカバレッジを処理しているかを確認します。ng test --code-coverage --coverage-reporters lcov で要求された reporter が選択され、angular.json の同等のオプションが機能すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
cli, testing
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。