2017-03-23 17:25:30 -07:00

1.5 KiB

ng e2e

Overview

ng e2e serves the application and runs end-to-end tests

Running end-to-end tests

ng e2e

End-to-end tests are run via [Protractor] (https://angular.github.io/protractor/).

Options

config

`--config` (alias: `-c`)

Use a specific config file. Defaults to the protractor config file in `.angular-cli.json`.

element-explorer

`--element-explorer` (alias: `-ee`) _default value: false_

Start Protractor's [Element Explorer](https://github.com/angular/protractor/blob/master/docs/debugging.md#testing-out-protractor-interactively) for debugging.

serve

`--serve` (alias: `-s`) _default value: true_

Compile and Serve the app. All serve options are also available. The live-reload option defaults to false, and the default port will be random.

specs

`--specs` (alias: `-sp`) _default value: []_

Override specs in the protractor config. Can send in multiple specs by repeating flag (ng e2e --specs=spec1.ts --specs=spec2.ts).

webdrive-update

`--webdrive-update` (alias: `-wu`) _default value: true_

Try to update webdriver.