Filipe Silva 8d2d93a7a2 feat(e2e): use protractor api (#4527)
Uses existing Protractor API to run it directly instead of using `npm run
e2e`.

Also adds support for the following flags: `--serve`, `--config`,
`--specs`, `--element-explorer`, `--webdriver-update`.

Fix #4256
Fix #4478

BREAKING CHANGE: `ng e2e` no longer needs `ng serve` to be running.
2017-02-09 15:14:29 -08:00

967 B

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.

Options

--config (-c) use a specific config file. Defaults to the protractor config file in angular-cli.json.

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

--element-explorer (-ee) start Protractor's Element Explorer for debugging.

--webdriver-update (-wu) try to update webdriver.

--serve (-s) compile and serve the app. All non-reload related serve options are also available (e.g. --port=4400).