Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tests): add '--suite' option to 'ng e2e' command #3551

Closed
wants to merge 6 commits into from

Conversation

jupapios
Copy link

@jupapios jupapios commented Dec 14, 2016

This makes the ng e2e command pass through the suite option to protractor #807
ie.

ng e2e --suite=something
ng e2e --suite=somethingA,somethingB

I created the unit (I think it used to exist) folder in which I put the e2e command spec and also moved the models unit tests inside it but I'm not sure if that is how we want to add unit tests, maybe we could discuss it.

Also, I added the mock-project file from ember-cli, needed to run tests against the commands.

@jupapios jupapios changed the title Add '--suite' option to 'ng e2e' command feat(tests) add '--suite' option to 'ng e2e' command Dec 15, 2016
@jupapios jupapios changed the title feat(tests) add '--suite' option to 'ng e2e' command feat(tests): add '--suite' option to 'ng e2e' command Dec 15, 2016
const ui = this.ui;
let exitCode = 0;

if (options.suite) {
commandArgs.push(`--suite=${options.suite}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're feeding in concatenated strings from the input, which would remove quotes etc. Could you surround the argument with double quotes?

@filipesilva
Copy link
Contributor

Superseded by #4527

@LouieCasiasJr LouieCasiasJr mentioned this pull request Aug 24, 2017
vikerman pushed a commit to vikerman/angular-cli that referenced this pull request Oct 6, 2018
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/issues/807
 github.com/angular/pull/3551
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants