You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd really like to knock out this easy little feature (or any angular-cli development), but I'm having trouble with the typings in the angular-cli project.
My recent fork appears to be missing something because I get a lot of errors like:
@hboylan where do you get those errors? If it's in your editor, it might mean that it doesn't support Typescript 2.0. You should be able to ignore them though, it won't affect much.
@filipesilva the -- workaround to pass extra parameters to protractor doesn't seem to work anymore, I guess because we switched from using the package.jsonscripts to using directly protractor as a library…
Any idea for another workaround or maybe introduce another way to pass extra parameters to protractors?
@filipesilva actually specs are not suites :) they are different concepts in protractor!
A suite is a set of specs configured in the protractor configuration.
So technically, this issue is not solved.
Unfortunately for me, my need was to pass an exclude option to protractor, which isn't solved via specs nor suites (I should create another issue for this).
I have a frontend with angular, a backend with java and some other networked resources exploited by the backend.
my e2e tests are for the frontend and I run them with mocks to simulate the backend: in that case, all tests can be run as long as my mocks return what is expected.
I also want to run the e2e tests with the real backend deployed but without the networked resources (a limitation of our CI and processing resources too): in that case, some of these tests should be disabled, i.e. those pertaining to frontend functionality that relies on the existence of the other networked resources.
I see two ways of solving this need:
(current way): in the tests that do need the external resources, I add a keyword in the name and exclude all files containing this keyword when I run the e2e tests with the real backend
I could define two suites, one for the e2e tests with backend (so without some of the tests) and one for the mocked frontend
I wanted to run it using angular cli command like ng e2e --suite=smoke. But cli does not pass that flag to protractor. I have also created a pull request in cli to pass the parameter to the protractor pull request
Activity
chompy18 commentedon Nov 2, 2016
Hi,
Any ideas when this will be implemented?
I have multiple scenarios that should run different suites and this fits the bill perfectly!
👍
filipesilva commentedon Nov 4, 2016
I don't have an update on when this will be available, but if someone is interested in doing a PR I'll review it.
As a workaround, right now you should be able to do
npm run e2e -- --suite authas well.hboylan commentedon Nov 6, 2016
I'd really like to knock out this easy little feature (or any angular-cli development), but I'm having trouble with the typings in the angular-cli project.
My recent fork appears to be missing something because I get a lot of errors like:
filipesilva commentedon Nov 16, 2016
@hboylan where do you get those errors? If it's in your editor, it might mean that it doesn't support Typescript 2.0. You should be able to ignore them though, it won't affect much.
victornoel commentedon Mar 2, 2017
@filipesilva the
--workaround to pass extra parameters to protractor doesn't seem to work anymore, I guess because we switched from using thepackage.jsonscriptsto using directly protractor as a library…Any idea for another workaround or maybe introduce another way to pass extra parameters to protractors?
filipesilva commentedon Mar 2, 2017
@victornoel there isn't a way to pass arbitrary parameters but as far as this issue is concerned now there is a way to pass suites:
victornoel commentedon Mar 2, 2017
@filipesilva actually
specsare notsuites:) they are different concepts in protractor!A
suiteis a set ofspecsconfigured in the protractor configuration.So technically, this issue is not solved.
Unfortunately for me, my need was to pass an
excludeoption to protractor, which isn't solved via specs nor suites (I should create another issue for this).filipesilva commentedon Mar 2, 2017
You're absolutely right, and I was confusing the two.
filipesilva commentedon Mar 2, 2017
Can you tell me more about your usecase? Is it that you need to exclude specs/suites sometimes only?
victornoel commentedon Mar 2, 2017
@filipesilva here it is:
I see two ways of solving this need:
6 remaining items
jaredmartinez commentedon Oct 3, 2017
Any update on this? Using the protractor --suite flag would be helpful in our development
nikoumba commentedon Oct 14, 2017
Another workaround:
add to package.json :
define your suites in protractor.conf.js:
run the desired suite with the double npm option:
aniruddhadas9 commentedon Nov 3, 2017
npm run e2e -- --suite auth--> this is not working for me. I am using angular cli 1.4.9 and have the below protractor confignikoumba commentedon Nov 8, 2017
@aniruddhadas9 you cannot use it with e2e. Add an extra protractor script command to package.json
and run it with
npm run ptor -- --suite=smokeaniruddhadas9 commentedon Nov 10, 2017
I wanted to run it using angular cli command like
ng e2e --suite=smoke. But cli does not pass that flag to protractor. I have also created a pull request in cli to pass the parameter to the protractor pull requestabeymg commentedon Jan 30, 2018
Which version of the cli is this feature (#8354) going to be available in ?
aniruddhadas9 commentedon Jan 31, 2018
Its already available in
1.7.0-betarelease you can try1.7.0-beta.3clydin commentedon Feb 1, 2018
Closing as this will be available in 1.7.0.
Maximus1285 commentedon Feb 7, 2018
@filipesilva if I use
ng e2e -- --suite authhow do I pass the parameterauthtoprotractor.conf.jsfeat(@angular/cli): override suite in the protractor config
angular-automatic-lock-bot commentedon Sep 7, 2019
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.