ng e2e
Builds and serves an Angular app, then runs end-to-end tests using Protractor.
ng e2e <project> [options]
ng e <project> [options]
Description
Must be executed from within a workspace directory. When a project name is not supplied, it will execute for all projects.
Arguments
Argument | Description |
---|---|
<project> | The name of the project to build. Can be an application or a library. |
Options
Option | Description |
---|---|
--baseUrl=baseUrl | Base URL for protractor to connect to. |
--configuration=configuration | A named build target, as specified in the "configurations" section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. Setting this explicitly overrides the "--prod" flag Aliases: -c |
--devServerTarget=devServerTarget | Dev server target to run tests against. |
--elementExplorer=true|false | Deprecated: This option has no effect. See: https://github.com/angular/protractor/blob/master/docs/debugging.md#enabled-control-flow for alternative methods. Start Protractor's Element Explorer for debugging. Default: |
--grep=grep | Execute specs whose names match the pattern, which is internally compiled to a RegExp. |
--help= true|false|json|JSON | Shows a help message for this command in the console. Default: |
--host=host | Host to listen on. |
--invertGrep=true|false | Invert the selection specified by the 'grep' option. Default: |
--port | The port to use to serve the application. |
--prod=true|false | Shorthand for "--configuration=production". When true, sets the build configuration to the production target. By default, the production target is set up in the workspace configuration such that all builds make use of bundling, limited tree-shaking, and also limited dead code elimination. |
--protractorConfig= protractorConfig | The name of the Protractor configuration file. |
--specs | Override specs in the protractor config. |
--suite=suite | Override suite in the protractor config. |
--webdriverUpdate=true|false | Try to update webdriver. Default: |
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/cli/e2e