ng e2e
Builds and serves an Angular app, then runs end-to-end tests.
ng e2e <project> [options]
ng e <project> [options]
Description
The command takes an optional project name, as specified in the projects
section of the angular.json
workspace configuration file. When a project name is not supplied, executes the e2e
builder for the default project.
To use the ng e2e
command, use ng add
to add a package that implements end-to-end testing capabilities. Adding the package automatically updates your workspace configuration, adding an e2e
CLI builder.
Arguments
Argument | Description | Value Type |
---|---|---|
<project> |
The name of the project to build. Can be an application or a library. |
string |
Options
Option | Description | Value Type | Default Value |
---|---|---|---|
--configuration |
One or more named builder configurations as a comma-separated list as specified in the "configurations" section of angular.json. The builder uses the named configurations to run the given target. For more information, see https://angular.io/guide/workspace-config#alternate-build-configurations. Setting this explicitly overrides the "--prod" flag. Aliases: -c |
string |
|
--help |
Shows a help message for this command in the console. |
true|false|json|JSON |
false |
--prod |
Deprecated: Use Shorthand for "--configuration=production". Set 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. |
boolean |
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/cli/e2e