{ "id": "cli/e2e", "title": "ng e2e", "contents": "\n
\n
\n mode_edit\n code\n
\n \n\n\n
\n \n CLI\n
\n\n \n
\n

ng e2elink

\n
\n\n\n \n\n
\n \n

Builds and serves an Angular app, then runs end-to-end tests using Protractor.

\n\n \nng e2e <project> [options]\n\nng e <project> [options]\n\n\n\n \n

\n \n Description\n

\n

Must be executed from within a workspace directory.\nWhen a project name is not supplied, it will execute for all projects.

\n\n \n\n \n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<project>\n

The name of the project to build. Can be an application or a library.

\n\n \n
string
\n\n\n \n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --base-url\n \n \n

Base URL for protractor to connect to.

\n\n \n
string
\n --configuration\n \n \n

One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.\nSetting this explicitly overrides the \"--prod\" flag.

\n\n

Aliases: -c

\n
string
\n --dev-server-target\n \n \n

A dev-server builder target to run tests against in the format of project:target[:configuration]. You can also pass in more than one configuration name as a comma-separated list. Example: project:target:production,staging.

\n\n \n
string
\n --grep\n \n \n

Execute specs whose names match the pattern, which is internally compiled to a RegExp.

\n\n \n
string
\n --help\n \n \n

Shows a help message for this command in the console.

\n\n \n
true|false|json|JSONfalse
\n --host\n \n \n

Host to listen on.

\n\n \n
string
\n --invert-grep\n \n \n

Invert the selection specified by the 'grep' option.

\n\n \n
booleanfalse
\n --port\n \n \n

The port to use to serve the application.

\n\n \n
number
\n --prod\n \n \n \n

Deprecated: Use --configuration production instead.

\n\n \n \n

Shorthand for \"--configuration=production\".\nSet the build configuration to the production target.\nBy 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.

\n\n \n
boolean
\n --protractor-config\n \n \n

The name of the Protractor configuration file.

\n\n \n
string
\n --specs\n \n \n

Override specs in the protractor config.

\n\n \n
array
\n --suite\n \n \n

Override suite in the protractor config.

\n\n \n
string
\n --webdriver-update\n \n \n

Try to update webdriver.

\n\n \n
booleantrue
\n\n\n \n
\n
\n\n\n" }