Add a coverage reporters option to ng test and angular json test options
- Vorherrschende Sprache
- TypeScript
- Sterne
- 27k
- Forks
- 11.8k
- Ø Merge
- 14 Std. 23 Min.
- Gemergte PRs (30 T.)
- 162
Beschreibung
### 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?
Beitragsleitfaden
Rechercherichtung
Beginne mit dem Befehl ng test und seinen Testoptionen in angular.json und vergleiche anschließend die vorhandene Option reporters mit dem angeforderten Verhalten von coverageReporters. Prüfe, wie --code-coverage und die Karma-Konfiguration derzeit mit Coverage umgehen; abgeschlossen ist die Aufgabe, wenn ng test --code-coverage --coverage-reporters lcov den angeforderten Reporter auswählt und die entsprechende Option in angular.json funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- cli, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100