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

Nobody has claimed this yet.

Assessment

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

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.

Description

area: @angular-devkit/build-angular devkit/build-angular:karma feature feature: insufficient votes
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?

Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
16h 35m
Merged PRs (30d)
176

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from angular/angular-cli

All issues in angular/angular-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.