ng test does not run tests for all projects
- 主要语言
- TypeScript
- 星标
- 27k
- 派生
- 11.8k
- 平均合并
- 14 小时 23 分钟
- 30 天内合并 PR
- 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.

## 🔬 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 中,或在包含一个 app 和一个 library 的 workspace 中重现该行为。将文档中描述的所有项目行为与观察到的输出进行比较,然后验证在未提供项目名称时,workspace 中每个项目的测试都会运行。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- cli, testing
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100