Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

ng test does not run tests for all projects

Aperta
#21,473 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
angular, typescript
Ambito
cli, testing

Direzione di ricerca

Inizia con il comando ng test e riproduci il comportamento nel workspace collegato o in un workspace che contenga un’app e una libreria. Confronta il comportamento documentato per tutti i progetti con l’output osservato, quindi verifica che vengano eseguiti i test di ogni progetto del workspace quando non viene fornito alcun nome di progetto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: @angular/cli freq1: low severity5: regression type: bug/fix

🐞 Bug report

Command (mark with an x)
  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc
Is this a regression?

Don't know

Description

The ng test documentation states "When a project name is not supplied, it will execute for all projects". However, this does not appear to be true. Only the tests for a single project are run.

image

🔬 Minimal Reproduction

  1. Clone https://github.com/swseverance/my-workspace
  2. npm install
  3. Run ng test and observe how only the tests for the app are run. The tests for the lib are not run.

OR

  1. Create a workspace
  2. Create an app within the workspace
  3. Create a lib within the workspace
  4. Run ng test and observe how only the tests for the app are run. The tests for the lib are not run.

🔥 Exception or Error

N/A

🌍 Your Environment


Angular CLI: 11.2.14
Node: 14.17.0
OS: darwin x64

Angular: 11.2.14
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1102.14
@angular-devkit/build-angular   0.1102.14
@angular-devkit/core            11.2.14
@angular-devkit/schematics      11.2.14
@schematics/angular             11.2.14
@schematics/update              0.1102.14
ng-packagr                      11.2.4
rxjs                            6.6.7
typescript                      4.1.6

Anything else relevant?

Lingua principale
TypeScript
Stelle
27k
Fork
11.8k
Merge medio
17h 25m
PR unite (30g)
183

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di angular/angular-cli

Tutte le issue di angular/angular-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.