Skip to content

Commit eab1305

Browse files
feat(@angular/cli) override suite in the protractor config
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//issues/807 github.com//pull/3551
1 parent fe96288 commit eab1305

File tree

1 file changed

+4
-0
lines changed
  • packages/@angular/cli/tasks

1 file changed

+4
-0
lines changed

packages/@angular/cli/tasks/e2e.ts

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export const E2eTask = Task.extend({
5959
additionalProtractorConfig['specs'] = e2eTaskOptions.specs;
6060
}
6161

62+
if (e2eTaskOptions.suite.length !== 0) {
63+
additionalProtractorConfig['suite'] = e2eTaskOptions.suite;
64+
}
65+
6266
if (e2eTaskOptions.webdriverUpdate) {
6367
// The webdriver-manager update command can only be accessed via a deep import.
6468
const webdriverDeepImport = 'webdriver-manager/built/lib/cmds/update';

0 commit comments

Comments
 (0)