angular / angular/angular-cli

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

Đang mở
#27,869 3 bình luận 6 reaction 0 người được giao Xem trên GitHub
area: @angular-devkit/build-angular devkit/build-angular:karma feature feature: insufficient votes
Ngôn ngữ chính
TypeScript
Star
27k
Fork
11.8k
Merge trung bình
14 giờ 23 phút
Pull request đã merge (30 ngày)
162

Mô tả

### 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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với lệnh ng test và các tùy chọn test của nó trong angular.json, sau đó so sánh tùy chọn reporters hiện có với hành vi coverageReporters được yêu cầu. Kiểm tra cách --code-coverage và cấu hình Karma hiện đang xử lý coverage; hoàn tất khi ng test --code-coverage --coverage-reporters lcov chọn reporter được yêu cầu và tùy chọn tương đương trong angular.json hoạt động.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
cli, testing
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.