angular / angular/angular-cli

ng test does not run tests for all projects

オープン
#21,473 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: @angular/cli freq1: low severity5: regression type: bug/fix
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
162

説明

# 🐞 Bug report

### Command (mark with an `x`)

- [ ] new
- [ ] build
- [ ] serve
- [X] 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](https://user-images.githubusercontent.com/18009315/127674786-d476987e-9018-4437-81c5-6ec940b1158a.png)

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

`ng test` コマンドから始め、リンクされた workspace、または 1 つの app と 1 つの library を含む workspace で動作を再現します。ドキュメントに記載されたすべてのプロジェクトに対する動作と、観測された出力を比較し、プロジェクト名が指定されていない場合にすべての workspace プロジェクトのテストが実行されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
cli, testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。