-
Notifications
You must be signed in to change notification settings - Fork 60
Enhancement : Ability to use cucumber profiles #9
Comments
any update on this issue? |
PRs are welcome 😉 |
I know PR's are welcome but... does anyone know if there is any update with this issue?? 😉 |
@dcypherthis @wvankuipers do you guys have an idea on how to apply profiles in cucumber? |
@christian-bromann No I have not, but I now use multiple |
My scenario is that I would like to pass in username & password dynamically, from the command prompt. Then run the tests in Jenkins, using different baseURLs and username/password combinations. |
@batje just pass in username and password as environment variables and use them in your test script |
I am currently using cucumber profiles via cucumber cli and, as reported here, From quickly looking at the code we are passing options to I guess the underlying functions could be reused to support profiles here, but I doubt it is worth the effort. As noted by @wvankuipers, using different My suggestion would be to update the default config and |
Sure, happy to review the PR |
We just updated to latest cucumber-js version, can someone check if this issues is fixed by that? |
Currently, we can pass in things like tags, and supposedly profiles at runtime, but I have been unable to get profiles working.
so you can do this...
wdio wdio.conf.js --cucumberOpts.tags some_tags
but the following fails to do anything...
wdio wdio.conf.js --cucumberOpts.profile something
I have a seperate file that contains my profiles...
I require this in my wdio.conf.js file
var profiles = require("./features/support/cucumber.js");
Even setting the cucumberOpts in config file explicitly fails to have any affect...
cucumberOpts: {
..
profile: [profiles.something]
..
}
The text was updated successfully, but these errors were encountered: