-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular/clifreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix
Milestone
Description
Bug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [x] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
node -v
v10.9.0
npm -v
6.4.1
ng -v
Angular CLI: 6.2.1
Node: 10.9.0
OS: win32 x64
Angular: 6.1.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.8.1
@angular-devkit/build-angular 0.8.1
@angular-devkit/build-ng-packagr 0.8.1
@angular-devkit/build-optimizer 0.8.1
@angular-devkit/build-webpack 0.8.1
@angular-devkit/core 0.7.4
@angular-devkit/schematics 0.7.4
@angular/cli 6.2.1
@angular/pwa 0.7.4
@ngtools/json-schema 1.1.0
@ngtools/webpack 6.2.1
@schematics/angular 0.7.4
@schematics/update 0.8.1
ng-packagr 4.1.1
rxjs 6.2.2
typescript 2.9.2
webpack 4.18.0
Repro steps
- Install angular-cli 6.2.1
- Create an angular workspace with three projects:
- project1
- project2
- project2-e2e - configured with a protractor.conf.js file to run tests against project2
- Try to run
ng e2e project2-e2e
- The cli ignores the project name parameter, and tries to find an
e2e
architect node in angular.json, instead of running the actualproject2-e2e
configuration specified in angular.json - Re-order the projects in angular.json to:
- project2
- project1
- project2-e2e
- Re-run
ng e2e project2-e2e
- Because project2 is first in the list, it seems to run e2e tests for that project
- Run
ng e2e -h
and notice that is no longer an accepted paramter, even thought the docs say that it is still valid.
$ ng e2e -h
usage: ng e2e [options]
options:
--configuration (-c)
Specify the configuration to use.
--prod
Flag to set configuration to 'production'.
Desired functionality
This seems to work fine in Angular 6.1.4:
- Run
ng e2e -h
and notice that<project>
is an accepted parameter:
$ ng e2e -h
usage: ng e2e <project> [options]
options:
--configuration (-c)
Specify the configuration to use.
--prod
Flag to set configuration to 'production'.
Mention any other details that might be useful
jakehockey10, csnate, andrei-ilyukovich, valysha, statyan and 4 moredmk1111
Metadata
Metadata
Assignees
Labels
area: @angular/clifreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix