-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Milestone
Description
Versions
Angular CLI: 6.0.0
Node: 8.9.4
OS: darwin x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.6.0
@angular-devkit/build-angular 0.6.0
@angular-devkit/build-optimizer 0.6.0
@angular-devkit/core 0.6.0
@angular-devkit/schematics 0.6.0
@angular/cdk 6.0.1
@angular/material 6.0.1
@angular/material-moment-adapter 6.0.1
@ngtools/webpack 6.0.0
@schematics/angular 0.6.0
@schematics/update 0.6.0
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0
Repro steps
- Have multiple apps/projects
- Run
ng test --watch=false
or anything that would provide an override
Observed behavior
ng test
works as long as I don't provide overrides.
Before @angular/cli@6.0.0
, running ng test --watch=false
would work. Now you get the following error:
$ ng test --browsers=ChromeHeadless --watch=false --progress=false --sourcemaps=false
Error: Architect commands with multiple targets cannot specify overrides.'test' would be run on the following projects: app1,app2,app3
at TestCommand.validate (/Users/user/code/angular_app/node_modules/@angular/cli/models/architect-command.js:91:23)
at /Users/user/code/angular_app/node_modules/@angular/cli/models/command-runner.js:274:39
at Generator.next (<anonymous>)
at /Users/user/code/angular_app/node_modules/@angular/cli/models/command-runner.js:7:71
at new Promise (<anonymous>)
at __awaiter (/Users/user/code/angular_app/node_modules/@angular/cli/models/command-runner.js:3:12)
at validateAndRunCommand (/Users/user/code/angular_app/node_modules/@angular/cli/models/command-runner.js:273:12)
at Object.<anonymous> (/Users/user/code/angular_app/node_modules/@angular/cli/models/command-runner.js:100:26)
at Generator.next (<anonymous>)
at fulfilled (/Users/user/code/angular_app/node_modules/@angular/cli/models/command-runner.js:4:58)
Desired behavior
I should be able to provide overrides on ng test
regardless of the number of projects I'm running it on. This worked prior to @angular/cli@6.0.0
.
Azuka, JMuhire, rokie-web, TekSiDoT, achwo and 16 morerokie-web