Aniruddha Das 265eb96c09 feat(@angular/cli): override suite in the protractor config
resolves: 807
Override suite in the protractor config.
Can send in multiple suite by comma seperated values (ng e2e --suite=suite1.ts, suite2.ts).

Issue link
 github.com/angular/angular-cli/issues/807
 github.com/angular/angular-cli/pull/3551
2018-01-03 11:09:26 +00:00

2.2 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.

Options

Please note that options that are supported by ng serve are also supported by ng e2e

config

--config (aliases: -c)

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

element-explorer

--element-explorer (aliases: -ee) default value: false

Start Protractor's Element Explorer for debugging.

serve

--serve (aliases: -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.

NOTE: Build failure will not launch the e2e task. You must first fix error(s) and run e2e again.

specs

--specs (aliases: -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).

suite

--suite (aliases: -su)

Override suite in the protractor config. Can send in multiple suite by comma separated values (ng e2e --suite=suiteA,suiteB).

webdriver-update

--webdriver-update (aliases: -wu) default value: true

Try to update webdriver.