angular / angular/angular-cli

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

Open
#27,869 3 comments 6 reactions 0 assignees View on GitHub
area: @angular-devkit/build-angular devkit/build-angular:karma feature feature: insufficient votes
Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
14h 23m
Merged PRs (30d)
162

Description

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

Contributor guide

Open the contributing guide

Research direction

Start with the ng test command and its angular.json test options, then compare the existing reporters option with the requested coverageReporters behavior. Check how --code-coverage and Karma configuration currently handle coverage; done means ng test --code-coverage --coverage-reporters lcov selects the requested reporter and the equivalent angular.json option works.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
cli, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.